aspose 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 Java 8 in Action this week in the Java 8 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
 
 
subject: how to call servlet from struts application
 
Similar Threads
Please help me to call a Perl Application from Struts
Call a Struts application within a portlet
Struts Newbie
STRUTS PROBLEM
sending email attachment with Struts?