tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Werner Ramaekers <cry...@pandora.be>
Subject Re: JSP : Can not retrieve Object stored from servlet into session
Date Tue, 17 Oct 2000 06:09:09 GMT
But the class is not in a package, so ...
anyone else have an idea ?

William Brogden wrote:

> Werner Ramaekers wrote:
> >
> > Hi,
> >
> > I'm using RH6.2, jdk1.2.2, Apache 1.3.14, Tomcat 3.2 Beta6
> >
> > In my servlet i'm storing a User object into a session :
> >
> > HttpSession session = request.getSession(true);
> > User user = new User(userid, password);
> > session.setAttribute("user", user);
> >
> > This servlet compiles without a problem and the User.class is stored
> > in the $(TOMCAT_HOME)/webapps/test/WEB-INF/classes folder
> > so that the servlet can find it.
> >
> > In my JSP i do the following :
> >
> > <jsp:usebean Class="User" id="user" scope=session"/>
> >
>
> IF that class is in a package you have to use the complete
> package name in the class="" - even if you have mentioned
> it in an import.

--
-----------------------------------------------------------------------
crypto : One who covertly supports a certain doctrine, group, or party.
<mailto: crypto@pandora.be>  <http://www.shiftat.com>
-----------------------------------------------------------------------



Mime
View raw message