tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Brogden <wbrog...@bga.com>
Subject Re: JSP : Can not retrieve Object stored from servlet into session
Date Mon, 16 Oct 2000 22:46:53 GMT


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.

Mime
View raw message