Duncan,
yes, you need to encode it the way you did if you want to use session without
relying on cookies.
-hendrik
- - - - - - - - - - - - - - - - - - - - - - - - - - -
tagtraum industries http://www.tagtraum.com/
jo! small&smart 2.2 servletengine
Java Server & Servlets The web-application book
The WebApp Framework http://www.webapp.de/
Duncan Rose wrote:
> All,
>
> If I'm using response.encodeURL(...) and response.encodeRedirectURL(...) in
> my controller servlet, and all forms etc. are submitted to this servlet
> (in <form action="/path/servlet" ...>), do I need to encode the url
> in the action parameter of the form?
>
> If yes, do I just use
> <form action="<%=response.encodeURL("/path/servlet")%>" ...>
> or is there something else I need to do?
>
> TIA,
>
> -Duncan
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets