Hi everybody,

I'm using tomcat 5.5.9 and am encountering a strange behaviour. I'm not sure, if it may be a tomcat issue...

I'm putting an object (called form) into the user's session using session.setAttribute() and retrieving it again (after the user has done some actions) using session.getAttribute().

Now look at my log messages:
Before putting the object into session:
Put form ([EMAIL PROTECTED]) in session (42A90C9AAEE86B81C916F093AAD69452)
After retrieving it from session:
Form ([EMAIL PROTECTED]) has been submitted, got it from session (42A90C9AAEE86B81C916F093AAD69452)

As you see the results from calling form.toString() are not the same. I've neither overriden toString() nor hashCode() - the methods from java.lang.Object are being used. It seems that this behaviour only occurs in productive system. In my local system it didn't come up.

Anybody got an idea, how this can happen? Does tomcat modify the objects in session somehow...?

Best regards,

Abid


--

Abid Hussain
Mail: [EMAIL PROTECTED]
Web: http://www.abid76.de

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to