This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to call servlet from struts application
 
Similar Threads
sending email attachment with Struts?
Struts Newbie
Call a Struts application within a portlet
STRUTS PROBLEM
Please help me to call a Perl Application from Struts