On Wed, 12 Sep 2001, Stuart Allen wrote:

> Date: Wed, 12 Sep 2001 15:46:23 +1000
> From: Stuart Allen <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: GET parameters and anchors
>
> Thanks, Craig
>
> A silly mistake, but I couldn't find any clues on the net anywhere...
>

For everyone's reference (including, I hope, future searchers of
TOMCAT-USER mailling list archives), the official reference for URI syntax
is RFC 2396: "Uniform Resource Identifiers (URI): Generic Syntax".  The
particular section that covers this issue is Section 4, where we find the
BNF:

  URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]

Internet "Request for Comment" (RFC) documents define the standards on
which most Internet protocols operate.  They are available from many
locations -- the one I use is <http://www.rfc-editor.org>, which includes
useful search engines as well as lookups by RFC number.

Servlet and JSP developers will also be interested in a couple of other
RFCs that are relevant to web applications:
* RFC 2109 - HTTP State Management Mechanism (i.e. cookies)
* RFC 2616 - Hypertext Transfer Protocol -- HTTP/1.1
* RFC 2617 - HTTP Authentication: Basic and Digest Access Authentication

> Stuart
>

Craig


> At 21:30 11/09/2001 -0700, you wrote:
> >Use "http://blah.com/index.html?user=frank#halwaydown"; instead.  The "#"
> >thing goes last.
> >
> >Craig
> >
> >
> >On Wed, 12 Sep 2001, Stuart Allen wrote:
> >
> > > Date: Wed, 12 Sep 2001 11:40:09 +1000
> > > From: Stuart Allen <[EMAIL PROTECTED]>
> > > Reply-To: [EMAIL PROTECTED]
> > > To: [EMAIL PROTECTED]
> > > Subject: GET parameters and anchors
> > >
> > > Hello
> > >
> > > I am having a problem when using a GET request in combination with a #
> > > anchor. If I call a page with an included servlet with a link such as:
> > >
> > >   http://blah.com/index.html?user=frank
> > >
> > > everything is fine, if on the other hand I use
> > >
> > > http://blah.com/index.html#halwaydown?user=frank
> > >
> > > the servlet behaves as if no parameter was passed at all. Using the #
> > > anchor in a form such as:
> > >
> > > <form action="/index.html#halwaydown">
> > >
> > > works exactly as I had hoped. Can anyone shed any light on this?
> > >
> > > Regards,
> > > Stuart
> > >
> > >
>
>

Reply via email to