I need to pass some parameters (just like a query string) to my <action path="/CustomerEnquiry" forward="/customer/CustomerEnquiry.jsp"/> I need some way to get the query string as CustomerID=1&FormId=1 Both teh properties(CustomerID, FormId) are available through form bean. How do i do it. Thankful for any help.
I'm not sure exactly what you're asking, but I think you want to use form bean values in the result forward of an action. If so, the form bean is still available in the request with the same name as the form has. i.e. if in your struts-config.xml the form bean is given a name="myForm" property, you can use request.getAttribute("myForm") to get the form bean in either the action or the result forward.
"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
subject: How to pass parameters to struts action-path-forward ?