You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by nmall <ha...@gmail.com> on 2007/06/11 06:53:12 UTC
linking struts2 action to pre-existing pure Java servlet
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:param>) 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. I can get the request parameter values in
the action class but cannot fiure 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!!
--
View this message in context: http://www.nabble.com/linking-struts2-action-to-pre-existing-pure-Java-servlet-tf3899596.html#a11055023
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org