----------------------------------------------------------------
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!!!
----------------------------------------------------------------

On Sun, 13 Feb 2000, Danny Martens wrote:
> It would appear that a form built like this :
> ---
> <FORM METHOD="get"
> ACTION="/servlet/servletname&JServSessionIdroot=izql8ur4w2">
> ---
> does not transmit the session data.

Whether or not you can get this to work with JServ (and if there are
working examples, then I'd believe the problem is with your testing
environment), there are clients which break on this syntax (they'll strip
after the question mark and just drop the extra stuff) -- though I don't
know what percentage of the browser market they represent.  I'd suggest
finding a way to include the session identifier, if appropriate, in a
hidden form variable; it's slightly more code, but it's far more correct. 

Since many HTML browser implementations were done without an RFC, the best
practice is to look at what's actually been built.

If you're still determined to do this, I'd look at the actual requested
URIs in the log file; they may provide some additional information as to
the source of your problem.  However, assuming your browser is sending the
same thing, it simply isn't possible for JServ to distinguish where each
of the arguments for the GET request come from -- if the browser is
sending

GET /servlet/a?foo=bar&baz=bing HTTP/1.0

then it will be parsed exactly the same way, whether the foo=bar was
present as a form variable or within the form action.  Based on the
information you've provided, I'm of the opinion that you're testing this
with a browser which strips stuff from the action for a get form (since
you indicated that in the get case, other parameters were being lost as
well).

Btw -- next time, I'd advise being more civil when dealing with volunteers
like Jon, who contribute a hell of a lot to this group.  I have far more
respect for him than for you, especially after reading this exchange.  I'm
sending this anyway as I wrote it before I finished reading the messages. 

Ed
--
See you at ApacheCon 2000 in Orlanda, Florida, March 8-10, 2000.
                 http://www.Apachecon.com/









--
--------------------------------------------------------------
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