----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi,

I've been browsing the faqs etc., and found some remarks but no solution
for the following problem :

It would appear that a form built like this :
---
<FORM METHOD="get"
ACTION="/servlet/servletname&JServSessionIdroot=izql8ur4w2">
---
does not transmit the session data.

If you use the post method, it works, but this is a very poor fix...
e.g. using post can cause requests for extra user input from the
browser... not very practical...

If you do it like this :
---
<FORM METHOD="get"
ACTION="/servlet/servletname">
<INPUT TYPE="hidden" NAME="JServSessionIdroot" VALUE="izql8ur4w2">
---

the session is maintained, but writing servlets who produce output like
this is not good practice and servlet host sensitive, simply because
session tracking solutions are proprietary to the servlet host, and e.g.
Servlet Exec from New Atlanta does encoding something similar to
"/servlet/servletname;$session=...", which looks like they get by this
problem by encoding the URL differently ?

Why can't JServ do this too ?

Bottom line, encodeUrl appears to become useless if you use it in the
above get-form scenario...

e-gret,
 Danny Martens



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
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