All of this works:
action=\"" + response.encodeURL("./post-data-servlet?cmd=insert") + "\"" // This works but I wouldn't use it, as it assumes // that encodeURL wouldn't add a query parameter action=\"" + response.encodeURL("./post-data-servlet") + "?cmd=insert" + "\"" <input type="hidden" name="cmd" value="insert"> > -----Ursprüngliche Nachricht----- > Von: Raphael Mack [mailto:[EMAIL PROTECTED]] > Gesendet: Freitag, 23. November 2001 12:34 > An: Tomcat Users List > Betreff: Re: URL-rewriting for FORMS > > > Sorry, forgot this question: > > if I want to pass a parameter to the "action" of the FORM, should I > write: > out.println("<form action=\"" + > response.encodeURL("./post-data-servlet?cmd=insert") + "\">"); > or > out.println("<form action=\"" + > response.encodeURL("./post-data-servlet") + "&cmd=inster\">"); > > or a ';' instead of '&' or a ';' instead of '?'? > or should I insert a hidden formfield for this? > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>