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 how to call servlet from struts application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to call servlet from struts application" Watch "how to call servlet from struts application" New topic
Author

how to call servlet from struts application

umasankar puranam
Ranch Hand

Joined: Sep 24, 2004
Posts: 31
hi,

I want to call a HttpServlet from struts application. Please provide me sample code for doing so.


umasankar<br />Software Engineer
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Just provide a forward that points to the URL of the servlet. Then return that ActionForward from your Struts Action class. Example:

struts-config.xml

action class


Merrill
Consultant, Sima Solutions
 
Consider Paul's rocket mass heater.
 
subject: how to call servlet from struts application