Placing a Object in Cookie

Hi,

I have a class named Test I placed the object of Test inside a session and try to take it in a other JSP

of same Session

<%

Test t = new Test();

session.putValue("obj",t);

%>

how to take the object t in the next page (with the code please)

Thanks in advance

[322 byte] By [Woofy] at [2007-9-30 20:47:05]
# 1
putValue is deprecated, don't use it anmore. RTFA.
CeciNEstPasUnProgrammeur at 2007-7-7 2:20:16 > top of Java-index,Java Essentials,Java Programming...
# 2
how I can transfer the Test object to the other pageBecause I dont want to instantiate it there(in the other page)
Woofy at 2007-7-7 2:20:16 > top of Java-index,Java Essentials,Java Programming...
# 3
> how I can transfer the Test object to the other page> Because I dont want to instantiate it there(in the> other page)Well, since you already placed your object into the session, how about just retrieving it from there?
CeciNEstPasUnProgrammeur at 2007-7-7 2:20:16 > top of Java-index,Java Essentials,Java Programming...
# 4
but the conversion of type i have to make there creates problem
Woofy at 2007-7-7 2:20:16 > top of Java-index,Java Essentials,Java Programming...
# 5
> but the conversion of type i have to make there> creates problemWhy? Bad design?
CeciNEstPasUnProgrammeur at 2007-7-7 2:20:16 > top of Java-index,Java Essentials,Java Programming...