struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christophe Andreoli <andre...@gsf.de>
Subject java.lang.ClassCastException by updating tomcat to 4.1
Date Fri, 02 May 2003 09:28:56 GMT
  Hello !




there was no problem with tomcat 4.0 but  with updating to 4.1 , I get
the following problem:


 I instantiate in my action class a role bean and save it to the session
with the following code:

RoleBean role = new RoleBean();
request.getSession().setAttribute("roleBean", role);


But then in the jsp pages using the role bean, as:

<jsp:useBean id="roleBean" scope="session"
class="com.ihg.mitop.gui.RoleBean"/>

<% if (((RoleBean)roleBean).getHolgerUser() == 1 ){ %> etc .....



I get the following exception:

java.lang.ClassCastException: com.ihg.mitop.gui.RoleBean 

??


Can you help ?


 thank you

Mime
View raw message