Hi
I am adding a piece of struts2 code in an app that uses
servlets, javascript form submission and scriplet code...its a mess.
But currently, my struts2 piece will forward the request based on certain criteria.
In this case if these conditions are true then control goes to some page, say apples.jsp. But this
jsp page has scriplet code and expects certain parameters. Previously, before my struts2 code, these parameters were passed as 'hidden' values via JS form submission and forwarding from page w/out showing user anything.
ok so I am wondering if its possible to setParameter using struts2?
I have something like this code
I looked around and it seems the
java servlet API's do not allow setParameter as its not job of a servlet but of a HTTP request.
A way around it would be for me to pass parameters by appending them to the page name using ?param=blah but that wont be 'hidden'. Also if I wish implement this approach, then is there a way to establish a variable that could be used in struts.xml?
so my struts.xml would become something like this
Thanks and sorry for big post