Markus Grill wrote:

> Hi,
>
> i want to use url-rewriting in a formular by using the post method like
> <form .. method=post  ... action=/servlet/x.y> but i have no idea how
> to use the encodeURL-function in that case.
>

The servlet that generates this line would need to be modified something
like this:

    PrintWriter writer = response.getWriter();

    writer.println("<form .. method=post ... action=\"" +
        response.encodeUrl("/servlet/x.y") + "/">");

This will embed the session identifier in the URL to which the form is
ultimately posted (if necessary), so your session will be maintained even
when the client browser has cookies disabled.

Craig McClanahan




----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to