I have a requirement in which I have to assign a value to a variable which should be accessed by another jsp which will be called from that jsp.
Elaboration :
I have an html field, which is a dropdown whose list values are always constant.
The significance of it is, another field is dependent on it.
So from a page if the value is selected, it goes to a different jsp(via action).
I want the dropdown selection to persist in the next page.
Please suggest anythig.
One way is to pass the selected value in URL and get it from
request.getParameteranother way to write it incookie if its not security issue. It’s up to you how do you want ?Please refer below post for more session tracking ways.http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-Session-Tracking.html