on 1/5/2001 3:11 AM, "Gareth Coltman" <[EMAIL PROTECTED]>
wrote:
> More info... Basically, in one action I am doing the following:
>
> data.getUser().setTemp("surname", pp.getString("surname",""));
>
> And calling
>
> System.out.println("SURNAME: " + data.getUser().getTemp("surname"));
>
> works perfectly.
>
> but a few screens later the same code
>
> System.out.println("SURNAME: " + data.getUser().getTemp("surname"));
>
> Just prints a null string...
>
> I have not used any login in my app, but I'm assuming that as the getUser
> method just fetches the session, that it should still create the
> hashtable...
>
> Hmmm... Please help.
>
> Gareth
Works fine for me. Your session must be getting lost between the pages (are
you making sure to pass the session id in a cookie or in the URI?). That
code is essentially just a wrapper around HttpSession objects so if it fails
here, it will fail there. :-)
-jon
--
Honk if you love peace and quiet.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]