You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tarwinder Dhak <ta...@net800.co.uk> on 2001/10/31 13:38:14 UTC

Beans from a servlet

Hi all,

I've got an index servlet the handles the initial request to my web app.
This servlet creates a session and a bean; this bean is then stored in the
session scope.  Once this is done, I use a request dispatcher to forward the
request to a JSP page.  The problem is that when I try to use the bean I
created in the servlet (using <jsp:useBean>), I get an internal servlet
error 500.

To try to narrow down the problem I removed the bean instantiation from the
servlet and created it in the JSP page, this works as it should.

Any ideas ???

Thanks in advance for you help !!!

Regards

Tarwinder Dhak
tarwinder.dhak@net800.co.uk

Transact Group
Development

Legal Disclaimer: Internet email communications are not secure and
therefore the NetInvest Group does not accept legal responsibility for
the contents of this message. Any views or opinions presented are solely
those of the author and do not necessarily represent those of the
NetInvest Group unless otherwise specifically stated.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>