the method session.putValue( .... )
is depreciated in newer specifacations. try using :
session.setParameter( ....)
This does not solve your problem, though.
-----Original Message-----
From: Jacek Laskowski [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 08, 2000 5:38 AM
To: [EMAIL PROTECTED]
Subject: Re: Query Regarding Sessions
Kevin Jones wrote:
>
> Why are you doing a redirect rather than a forward?
> Is the jsp part of the same context as the servlet?
>
> Kevin Jones
> > In servlet The code Looks as follows
> > Vector selectedRows = comes from the EJB
> > session.putValue("SelectedRows",selectedRows);
> > res.sendRedirect("/web/Data.jsp")
> >
> > In JSP when i access the
> > session.getValue("SelectedRows") iam getting null
> >
> > Kumaran
That's good question why do you use sendRedirect instead of
RequestDispatcher to accomplish the same in much more short time
comparing responses' time.
You shouldn't see any problems as long as you *encode* links, so the
session will be still available. If you insist on using sendRedirect,
you have to make a little change:
res.sendRedirect(res.encodeUrl("/web/Data.jsp"));
and all should be working fine now.
Jacek Laskowski
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets