File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Configure a new servlet in Struts 2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Configure a new servlet in Struts 2.0" Watch "Configure a new servlet in Struts 2.0" New topic
Author

Configure a new servlet in Struts 2.0

Kushal Thakore
Greenhorn

Joined: Nov 21, 2005
Posts: 3
Hello,
I am a newbie when it comes to Struts. I need to have a servlet called from my JSP page. 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configure a new servlet in Struts 2.0
 
Similar Threads
Form Beans necessary?
choose the servlet a form should do
Integrating JSP-Servlet APP with Struts APP
Separate Actions and GUI
Struts and Sequence Diagrams