In the servlet you can set the bean object itself or
some/all of its properties as attributes of the session.
In the JSP you can retrieve the objects:
// In the servlet
Foo foo = new foo();
//.......
request.getSession().setAttribute("foo", foo);
// In the JSP
Foo myFoo = (Foo)session.getAttribute("foo");
Alternatively, you can use request.setAttribute(), request.getAttribute()
if you just need the bean during the handling of the current request.
--
Trond
----- Original Message -----
From: Lorena Carlo <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 05, 1999 5:54 PM
Subject: help me please
> Hello,
> I have a question, can you through a servlet that call a JSP, pass
> parameters or variables of a bean that I have executed on the servlet to
the
> JSP, and if it is posible which JSP tag should I have to use.
>
> Thanks,
>
> Lorena
>
>
===========================================================================
> 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