I have a situation where an application is saving attached documents to a directory with a unique name, so if I save "document.doc" it saves to disk as "ABCD1234".
I want to provide a link to this document, but if I use a normal HTML link I don't get the correct filename, and the browser...
Hmmmm, your correct, moving the get attribute to directly below the other two lines works, it just doesn't work when in another jsp that is being called.
SO
String s_param = request.getParameter("PP");
session.setAttribute("S_PARAM_IN", s_param);
String X= (String) session.getAttribute...
I'm just using
String passed_param= (String) session.getAttribute("S_PARAM_IN");
to get it, as I said using a quoted string in place of the variable works fine, I assumed this line would be okay based on that.
I'm sure this is quite simple, but it defeats me.
I'm using:
String s_param = request.getParameter("PP");
Thats fine, and I can print s_param.
Then
session.setAttribute("S_PARAM_IN", "TEST");
That also fine, and I get get it later and print it, but
session.setAttribute("S_PARAM_IN"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.