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");
two.jsp
...
One is <%=request.getAttribute("ONE") %>
Two i
Hi,
I think you've to pass Integer objects like new
Integer(1) and 2. While you're retreiving you can
convert Integer to primitive int.
I hope this will help you.
__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.
2001 14:06:46 +0530
> To: Orion-Interest <[EMAIL PROTECTED]>
> Subject: Storing HttpServletRequest Object in Session
>
> Hi all,
> I tried to store the implicit request object in session. But when i tried to
> retrieve it.
>
>
> one.jsp
> --
>
> ...
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.j