> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Jason
> Hunter
> Sent: Thursday, 10 May 2001 2:12 AM
> To: [EMAIL PROTECTED]
> Subject: Re: a small problem with number guess game JSP
>
>
> yilmaz ay wrote:
> >
> > it has a logical problem.
> > whenever i made a guess and submit it, the JSP resets
> > the session and generates anew random number,
> > so i can never make a successful guess.
> > i know that the problem comes out from my WML code.
>
> WAP doesn't support cookies, so normal servlet session tracking doesn't
> work. You'll see symptoms exactly like you're seeing.
>
> You might look into the URL rewriting capabilities of servlet session
> tracking, encodeURL(), to get around the lack of cookies. I haven't
> tried it myself yet.
>
> -jh-
>
You have to be careful with URL rewriting and WAP devices. Some of the
earlier ones have a maximum length for a URL, 128 bytes seems to come
to mind.
Rob Griffin
Quest Software
E-mail: [EMAIL PROTECTED]
Web site: http://www.quest.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html