On Tue, 22 Feb 2000, Alessandra Spada wrote:
> I have to post a simple question.
>
> How I can pass a bean to a jsp?
> Resin use the jsdk22 therefore I can't use the RequestDispatcher.
> I have proved using response.sendRedirect("myJsp.jsp") but it don't work
> correctly because the jsp don't see the bean and so I have a
> NullPointerException during the execution of the jsp.
>
> My application has not problems because it work fine using jrun2.3.2.
>
> Any ideas?
> Thank's in advance
>
>
>
>
> --
> Alessandra Spada
>
> e-mail: [EMAIL PROTECTED]
> web : http://www.ariadne.it/
> Ariadne voice : +39 0382 407 538
> Via del Torchio 1 +39 0382 407 450
> 27020 Torre d'Isola (PV) - ITALY fax : +39 0382 407 384
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
>
Hello Alessandra I had a similar problem and I solved that writing.
<jsp:useBean id="<your id>" scope="session"
class="<your class>" />
in the head of the file that I want to use the bean.
Omar Vera.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html