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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Struts Newbie
STRUTS PROBLEM
Call a Struts application within a portlet
sending email attachment with Struts?
Please help me to call a Perl Application from Struts