Use the request scope. Before redirecting in the servlet
set the object with request.setAttribute("myKey",myObject)
and use request as scope in your jsp:usebean tag.

Bruno

Stephen Kuo wrote:
> I am trying to use JSP as the html templates, but I have to find out a
> good method
> to pass objects from servlet to JSP. HttpSession could be a good idea,
> but without
> HttpSession, could I create a JavaBean instance and set some values,
> then get the
> values in JSP ?

===========================================================================
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

Reply via email to