On Thu, 27 Jun 2002, Sunil Mathew George wrote:

> Date: Thu, 27 Jun 2002 12:06:16 +0530
> From: Sunil Mathew George <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>      [EMAIL PROTECTED]
> To: Struts User <[EMAIL PROTECTED]>
> Subject: Does form "method=get" behave uniformly in all containers
>
> Hi,
>       I am doing an application using JSPs/ Struts as the presentation
> layer(Tomcat server). I want to know the behaviour of the form method=GET
> with other containers like Weblogic etc.
>
>
> There is a possibility that, when I use URLs for session tracking and the
> form method is set to GET, the session will probably be lost. This is
> because some containers encode the session id as part of the query string.
> In get-form's the browser will replace the query string completly with the
> one built from the form fields.(in accordance to the HTML4) spec.
>
>       If any one has experienced problems with form method=GET in different web
> servers, please inform me about the same. !
>

All containers that implement Servlet 2.2 or 2.3 are required to support
"URL rewriting", which encodes the session identifier in the url as a path
parameter (not a query parameter).  However, it is up to your application
to make sure you call response.encodeURL() as you are creating such links.

The good news for Struts users is that tags like <html:form> and
<html:link> do this for you, so that if you create all your links with the
tags, you don't have to worry about URL rewriting yourself.

> Regards,
> Sunil.
>
>

Craig



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to