Hi,

... I'm aware of this problem, but I didn't pursue it because I think it is mentioned 
somewhere that the JSWDK servlet host/ web server does not implement URL rewriting 
yet... you'll probably need to try it with a demo version of a commercial servlet 
host... but, I could be wrong... Anyway
I consider URL rewriting a dirty trick (see the hotmail bug), with too much drawbacks 
to consider it any longer as a serious alternative. Browser persistence has become too 
crucial for a web-application : 99% of your target audience can support cookies... no 
need to become a slave of the
overwhelming amount of (would-be) browsers out there...

There, that didn't help at all, now did it :))

e-gret,
 Danny Martens
 Tomoton

"matteo.manzini" wrote:

> I still have my problems with URL rewriting.
> I understand what the HttpServletResponse.encodeURL() is used for, but I can't 
>succed in using it inside my servlets.
> First of all, I would like to know if JSWDK 1.0 support this method.
> If so, I would like to ask u what is the problem in the following line of code:
>
>     out.println("<form action=\"" + 
>response.encodeURL("http://localhost:8080/servlet/encUrlServlet.Servlet1") + "\" 
>method=\"post\">");
>
> Here, considering what I can understand, if I turn cookies off from my browser, the 
>session id should be automatically attached to the url calling 
>encUrlServlet.Servlet1. But this doesn't happen, and my session is lost when I try to 
>use it inside doPost method of encUrlServlet.Servlet1.
> Can someone explain me where is my error?? Or even redirect me to some example code??
> Thanks.
> Matteo
>
> --
> TiscaliFreeNet, libero accesso ad Internet.
> http://www.tiscalinet.it
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to