×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    17

    problem with session object

    hi there

    I have three pages log1.jsp, log2.jsp, main.jsp
    we know session objects are implicit
    in log1.jsp i set session attribute and then log2.jsp is called using "forward" tag of jsp. In log2.jsp i am able to retrieve the session attribute. from log2.jsp, main.jsp is called using "go" tag of wml., but in main.jsp i am not able to retrieve the session attribute, it gives null and also session id is printed different.

    can anyone help in this regard

    thankyou in advance
    sash

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Singapore
    Posts
    101
    Hi,

    You could try including a WML postfield element to contain the session id with any WML go element, something like this :

    <go href="index.jsp" method="post">
    <postfield name="MySession" value="<%= session.getId() %>"/>
    </go>


    Best Regards,
    Valerie / Forum Nokia
    Last edited by taiwerns; 2003-06-20 at 10:01.

  3. #3
    Registered User
    Join Date
    May 2003
    Posts
    17

    does it help to get other attributes.

    hi

    Thanks for the reply,
    but how do i get other attributes stored in the session object.
    do i have to pass all those attributes in the same way(which i did not wanted)

    or
    using the session id in other page can i retrieve the other attributes of that session. If so how is that


    thanks a lot
    regards
    sash

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×