Venkatesh Kumar A G wrote:
>
> Hi ,
> When is send a form using GET , Even If use encodeURL , I am getting a
> new session losing
> the old one. If use cookies there is no problem and also no problem
> with POST.
>
> Please help me
> Thanks
> Venkatesh
You cannot use sessions with URL rewriting and form with GET method
together.
It is because you will get a form like this:
<FORM METHOD=GET ACTION="/servlet/MyServlet?Session=ASASAS" >
<INPUT TYPE=HIDDEN NAME=par1 VALUE=va11 >
<INPUT TYPE=SUBMIT>
</FORM>
Browsers will replace the parameter defined in "ACTION"
by parameters defined in INPUT tags.
Just use POST method, it is better.
Martin
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
INET, a.s. Mgr. Martin Kuba
Kralovopolska 139 e-mail: [EMAIL PROTECTED]
601 12 Brno WWW: http://www.inet.cz/~makub/
Czech Republic tel: +420-5-41242414/33
--------------------------------------------------------------------
PGP fingerprint = D8 57 47 E5 36 D2 C1 A1 C3 48 B2 59 00 58 42 27
http://wwwkeys.cz.pgp.net:11371/pks/lookup?op=index&search=makub
--------------------------------------------------------------------
___________________________________________________________________________
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