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/11/01 10:24:54 UTC

Java beans

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>


Re: Java beans

Posted by "Craig R. McClanahan" <cr...@apache.org>.
There is no way to help you narrow this down unless you can show us the
exception message and stack traceback that comes up on the error page.
Whatever that problem says is why you got the error 500 page.  It could be
anything from a compilation error on the page itself to a
NullPointerException in your bean code -- there is just no way to know
without seeing the rest of the message.

Craig


On Thu, 1 Nov 2001, Tarwinder Dhak wrote:

> Date: Thu, 1 Nov 2001 09:24:54 -0000
> From: Tarwinder Dhak <ta...@net800.co.uk>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: 'Tomcat' <to...@jakarta.apache.org>
> Subject: Java beans
>
> 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>
>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>