Sure. Actually, the code to access the session is in the action
classes and not the jsps. It's the same code in both actions (for jsp1
and jsp2)

String cdsID = 
((UserTO)request.getSession().getAttribute("userInfo")).getCdsID();

I tried another thing, instead of going to jsp1 from index page (which
was working), I am going to jsp2 (just changed the link and it
worked!!!! So the bottom line is the links through the index page
work, but the links throught the header.jsp (the header inserted using
tiles) does not work. Here's how I create the links

Index Page
<a href"/viewHistoryDefault.do">Home Page</a>

header,jsp
<a href="/TrnTracker/viewSchedule.do"">Schedule Page</a>

Is the context root (present in header, missing in index) making a difference??

thanks


On 3/12/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dilip,

Dilip Ladhani wrote:
> I have  this wierd problem, I have spent a few hours debugging.

[index.jsp:]
>     session.invalidate();
>     session = request.getSession(true);
>                session.setAttribute("userInfo", user);
>
> Now I go to the jsp1, and retrieve the userInfo from session, all works
> well.
> Now, when I go to jsp2, (off a link in my header), and try to retrieve
> userInfo, I get a null???? Why's that?

Can you post the relevant code from both jsp1 and jsp2?

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF9Vyk9CaO5/Lv0PARAhAzAJ9DZ3gAtv85+OCyN57CkyMklOPg3ACgmD8j
bP7f+J/8rzMXvFe5QH+6NHU=
=t2l9
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to