On Fri, 23 Mar 2001, David Wall wrote:

> > The most likely explanation is that you are using instance variables in
> > your servlets, instead of local variables, to represent the information
> > for a particular request.  These variables are shared across all of the
> > simultaneous requests to the same servlet, so it's easy for one request to
> > scribble on the data of another request.
> 
> Does anybody know if session tracking -- when cookies are not enabled and
> using encodeURL/encodeRedirectURL -- works across POST requests.  I've noted
> that it seems okay with GET requests, but is there anything that needs to be
> done to ensure that the session id is sent correctly for FORM POSTs?
> 

As long as you remember to call response.encodeURL() around the value of
the action parameter on your <form> element, it will work fine.

i.e. if you were writing the element in a servlet:

        writer.print("<form action=\"");
        writer.print(response.encodeURL("/my/action/url"));
        writer.println("\" method=\"POST\">);

> Davd
> 
> 

Craig McClanahan



Reply via email to