aspose file tools*
The moose likes Struts and the fly likes linking struts2 action to pre-existing pure Java servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "linking struts2 action to pre-existing pure Java servlet" Watch "linking struts2 action to pre-existing pure Java servlet" New topic
Author

linking struts2 action to pre-existing pure Java servlet

R .sourav nayak
Ranch Hand

Joined: May 14, 2006
Posts: 67
Hi,

I have a servlet which implements some logic based on some URL parameters
passed to it. I can invoke this servlet directly from my browser, by simply
supplying the parameters thru the URL.

http://localhost:8080/myproject/myapplication?param1=value1¶m2=value2

However, I would like to set these parameters thru' the struts.xml ( using
<s aram> and thereafter link this
servlet ( the servlet simply extends HttpServlet) to the struts action so
that it is invoked the same manner as above.

any clue on how I can do this. how can get the request parameter values in
the action class ? out how to pass this to the servlet?
Should I simply call ServletActionContext.setRequest(name of the servlet
object).

Thanks for your help, I really appreciate any pointers!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: linking struts2 action to pre-existing pure Java servlet