• Post Reply Bookmark Topic Watch Topic
  • New Topic

linking struts2 action to pre-existing pure Java servlet  RSS feed

R .sourav nayak
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.


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

Thanks for your help, I really appreciate any pointers!!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!