Why are you trying to put the request into the session? If you're doing
a jsp:forward to two.jsp, then you can still see your request. The
following works...
one.jsp
...
request.setAttribute("ONE","1");
request.setAttribute("TWO","2");
<jsp:forward page="two.jsp" />
two.jsp
...
One is <%=request.getAttribute("ONE") %>
Two is <%=request.getAttribute("TWO") %>
...
This makes sense because a forward is all in the same request.
Jeff Hubbach
- Storing HttpServletRequest Object in Session Santosh Kumar
- Re: Storing HttpServletRequest Object in Session Geoff Marshall
- Re: Storing HttpServletRequest Object in Session varada rajan
- Jeff Hubbach
