wood burning stoves 2.0*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to call servlet from struts application