Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configure a new servlet in Struts 2.0

Status
Not open for further replies.

kthakore

Programmer
Feb 20, 2004
5
US
Hello,
I am a newbie when it comes to Struts. I need to have a servlet called from my JSP page. I am trying to display an image out of the database onto a JSP page through the html:img's src tag using a servlet as its source. Can anybody tell me the following:
- Where do I place the Serlvet class? Under the webapplication or along with my other Action/Form classes? I create a JAR file of my form and action classes along with other utility classes and place in the app's WEB-INF\lib dir.
- Which files do I need to change and how so that I can call a servlet successfully. I assume I would need to modify web.xml and possible struts-config.xml - is that correct? If yes, what modifications are needed?

Thanks a lot for any help.

Regards,
Kushal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top