I understand now that session is ok :
I always get right NameFromSess : out.println(NameFromSess: <%=
session.getAttribute("fullName")%> );
So something wrong in my User class, here I get different userName:
com.srl.support.User user = (com.srl.support.User)
session.getAttribute("user");
out.println("from session user : "+ user.get("firstName"));
I put the User insatnce in LogonAction in usual way:
session.setAttribute(Constants.USER_KEY, user);
What might be wrong?
> > I have cookies enabled. I use tomcat 4.0.3.
> >
> > > Possible hint:
> > > Seems to be a problem related to sessions :) Do you have the cookies
> > enabled
> > > in your browser? If not the session management will be done via
> > encodeURL()
> > >
> > > Which version of Tomcat do you use?
> > > Somewhere in
> > >
> >
>
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4-b2/RELEAS
> > > E-NOTES :
> > > ----------------------
> > > Bugzilla Bugs Resolved:
> > > ----------------------
> > >
> > > 6846 dispatcher.forward() is confused when using special servlet
> > > mapping URLs
> > > 6982 Stop + start of the context makes weird things
> > > 7061 Servlet loaded TWICE on application startup?
> > > **7102 response.encodeURL() doesn't encode**
> > > 7171 FileStore directory must exists
> > > 7344 Tomcat appears to be case-sensitive with regard to the token
> > > "Basic"
> > > in Authorization request parameter
> > >
> > >
> > > ----- Original Message -----
> > > From: "Leonid_Srl1" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Saturday, April 13, 2002 11:55 AM
> > > Subject: Session Problem
> > >
> > >
> > > Hi,
> > >
> > > I used usual way to save logged user parameters:
> > >
> > >
> > > In LogonAction class :
> > > session.setAttribute(Constants.USER_KEY, user);
> > >
> > > where user is class.
> > >
> > > In jsp file :
> > >
> > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> > >
> > > <table width=700 cellpadding="0" cellspacing="0" border="0">
> > > <B>Hello <bean:write name="user" property="fullName" filter="true"/>
> > > Company: <bean:write name="user" property="companyName"
> > > filter="true"/></B>
> > >
> > > And here I got strange behaviour : old logged user is getting Hello
> > recently
> > > logged user with all
> > > appropriate security.
> > >
> > > There is a little similar case in
> > > http://w6.metronet.com/~wjm/tomcat/2000/Jul/msg00316.html
> > >
> > > Leonid.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>