Folks, Long time viewer first time poster here on Javaranch. My issue is I am submitting a form that hits the method attached below. I am successfully fetching the value sent from the
JSP form. My problem is to make this value available to another class. Lets call this class Sample.java.
How do I make the values submitted from the JSP form available to class Sample.java and keep it there for use until the user logs out.
I tried adding a public
String variable in Controller method shown below and then creating an instance of Controller in Sample.java to get the value but it always returns a null.
Help much appreciated.