×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    2

    Session Problem -- Wml

    The session is not maintained between the JSP's using Anchor or Do Tags
    These are the two Jsps which i am using

    First.jsp

    <%
    response.setContentType("text/vnd.wap.wml");
    session.putValue("name","xyz");
    System.out.println("Session in First.jsp"+session);
    %>
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
    "http://www.wapforum.org/DTD/wml13.dtd">
    <wml>
    <card>
    <p>
    fhsdfhsdkj
    <do type="accept" label="Logout">
    <go href="second.jsp" />
    </do>
    </p>
    </card>
    </wml>

    Second.jsp

    <%
    response.setContentType("text/vnd.wap.wml");
    String x = (String)session.getValue("name");
    System.out.println("XXXXXXXXXXXXXXXx"+x+session);
    %>
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">
    <wml>



    <template>

    <do type="prev"><prev/></do>
    </template>

    <card id="card1" title="Card #1">

    <do type="unknown" label="Next">
    <go href="second.jsp"/>
    </do>


    <p align="center">

    <big><b>First Card<%= x %></b></big>
    </p>


    </card>

    <card id="card2" title="Card #2">
    <p align="center">
    <big><b>Second Card</b></big>
    </p>
    </card>

    </wml>

    Can anybody please help me with this problem

  2. #2
    Registered User
    Join Date
    Mar 2003
    Location
    New Zealand
    Posts
    9

    WAP 1X does not consistently support sessions

    Please see my reply to a similar thread for an alternate way of managaing users sessions:
    http://discussion.forum.nokia.com/fo...threadid=30243

Posting Permissions

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