Getting a variable from a session
In a java class, I have a method that gathers info from a database, but part of the info I need (as a part of the sql statement) is taken from a value from a form the user input from a previous jsp page.
Is there any way to get that info they input from the session (or should I make a static object?)
If it matters, I am using a struts 2 framework.
Re: Getting a variable from a session
Not sure I understand the question...are you asking if you can get GET/POST data from a Session object? You can set a Session attribute with the particular value, the get that attribute later