How to pass value from querystring to action class in struts2? -
I want to pass the ID in my action class from the query string, and want to use that ID in my action class Am I tried:
& lt; Li & gt; & Lt; A href = "Next page data action? RecordID = sessionMap.get (record id [0])" & gt; Next & lt; / A & gt; & Lt; / Li & gt; But I'm getting an exception I have an addred list for sessionMap and want to withdraw that value from session valueMap to queryString parameter. Can anyone provide solutions to this problem?
If you keep in session then there is no need to send again as the request parameter. You can directly access that session variable in the action class.
Comments
Post a Comment