>>> Peter_N�tzel <[EMAIL PROTECTED]> 10/13/99 3:50:00 PM >>>

>I have another Problem with the encodeUrl -
>method used with <FORM action="">:
>Some Servlet Engines (e.g. Apache JServ and JRun)
>use the Http get-method to encode the session ID (url?sessionID).

>I encode the URL in <FORM action=""> and have some
>other parameters inside the HTML-FORM(specified
>with <INPUT> tags) which should be send with the GET
>Request.

Why?

>If the User submits the Request, the encoded SessionID is
>overwritten by the Browser with the paremeters specified
>inside the FORM-tag. In this case I loose the session.

Only if you encode the action of the form with encodeURL().
If you're putting it in manually with an <INPUT> tag you can just construct the action 
manually and you don't need to encode it.

You *shouldn't* do it this way - it's bad practice. But I have to admit I do it all 
the time.


Nic

___________________________________________________________________________
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

Reply via email to