Discussion Board
-
Session Problem -- Wml
2003-10-03, 09:30
#1
Registered User
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
-
WAP 1X does not consistently support sessions
2003-10-22, 03:27
#2
Registered User
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
-
Forum Rules