I am working on an application using
Struts. I have problem in getting the query
string parameter in the jsps.
I have a tile based approach and in one of the tiles there is one
jsp page which I am using for search. After the search is done, the results are displayed on the same page with an added column (select box) for actions(like duplicate, delete and so on). Also the <html:form action="/aa.do"> is only till the search button and the results are not inside the form.
So, now if the user selects any action(delete, duplicate ...), I need to goto another page and I need to get the selected action value. If the user has selected delete, I need to get the value "Delete" in the next page.
Since the select box is not in the form, I used onclick function and called a javascript. In the javascript I am getting the selected value. Then I am appending the value as a query string, but I am not getting the value in next page.
The select box is
Javascript is
Here I am using request.getParameter("test"), also tried session.getAttribute("test") (since the form scope is session), but both of them are null.
What am I missing here? I am sure it must be a small thing, but I am not able to figure it out.
Thanks for any help.