Hi all,
I tried to store
the implicit request object in session. But when i tried to retrieve
it.
one.jsp
----------
...
...
request.setAttribute("ONE", "1");
request.setAttribute("TWO", "2");
..
..
session.setAttribute("request",request);
..
--> forward to two.jsp
two.jsp
----------
request =
(HttpServletRequest) session.getAttribute("request");
out.println((String)
request.getAttribute("ONE"));
out.println((String)
request.getAttribute("TWO"));
Both the print statements are returning null.. i was expecting 1
and 2 WHY????
Regards,
Santosh
|
- Re: Storing HttpServletRequest Object in Session Santosh Kumar
- Re: Storing HttpServletRequest Object in Session Geoff Marshall
- Re: Storing HttpServletRequest Object in Session varada rajan
- Re: Storing HttpServletRequest Object in Session Jeff Hubbach