Hi guillaume
I tried it also but I had a problem. If I give the session id in the action
tag the browser does not send me the other data ie the data in my HTML Form
ie in the textfields and other controls. Only the session id comes to my
servlet. Have u had any such problems or did u try with some data in the
form.
TIA
Anamitra
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
guillaume ORIOL
Sent: Friday, September 03, 1999 2:35 AM
To: [EMAIL PROTECTED]
Subject: URL rewriting, QueryString and POST method
Yesterday i bougth the french translation of Jason Hunter's book:Java
Servlet programming.
I don't know if it is a translation mistake (i don't have the english
edition) but i found
a strange remark in chapter 7. The paragraph that covers URL rewriting says
(i try to translate back to english):
The session ID can be coded in PathInfo, in QueryString or in a way
particular to the server.
[...]
Each method has its pros and cons. [...] The QueryString method functions
with every server
BUT CANNOT BE USED AS FORMS TARGET WITH THE POST METHOD,
and you can get parameter names collisions.
I tried a html generated tag like that:
<form action="http://www.server.com/servlets/myServlet?session=12345"...
and the servlet myServlet was able to read the session parameter in the
queryString.
Do i misunderstand something?
guillaume
___________________________________________________________________________
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