JSP WML and session ..deadly combination

Discussions

Web tier: servlets, JSP, Web frameworks: JSP WML and session ..deadly combination

  1. JSP WML and session ..deadly combination (5 messages)

    Hi,
      I am using jsp's to generate dynamic wml code
      I am also using HTTPSession to maintain sessions
       Everything works fine on simulator.
      The Problem occours when we actually test our application using wap enabled phone.All session value are lost and session value returns null.
       I even replaced all session objects with cookies for session management (which again runs fine on simulator) but fails on actual phone.
    Please reply....
    Sanket RAut

    Threaded Messages (5)

  2. Does the phone support cookies? You'll probably have to use URL re-writing to store the session key rather than a cookie.
  3. Yes, do not use cookies. Switch to the URL-rewriting


    Marina
    http://www.servletsuite.com
  4. Thanks[ Go to top ]

    Hey thanx for your reply.
    It worked ;-)
  5. Re: Thanks[ Go to top ]

    I'm having a related problem. How do you fix it?
  6. Hello , I am new to jsp as well to wml too .. Problem is with Session variable . the page on which session variable are made , they are extracting on that page  easily .... but on other pages ...they contain null values ...i am not able to get inserted values .

    function used to set and extract session values :

    session.setAttribute("sessumobile", user1);

    <p>Name  : <%=session.getAttribute("sesspassword")%></p>     respectively //used on next page .

    please help me out .

    thanx in advance .