tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Bergsten <h...@gefionsoftware.com>
Subject Re: cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/facade HttpServletResponseFacade.java
Date Tue, 21 Nov 2000 03:32:56 GMT
"Craig R. McClanahan" wrote:
> 
> Hans Bergsten wrote:
> 
> > craigmcc@locus.apache.org wrote:
> > >
> > > craigmcc    00/11/20 15:59:43
> > >
> > >   Modified:    src/share/org/apache/tomcat/facade Tag: tomcat_32
> > >                         HttpServletResponseFacade.java
> > >   Log:
> > >   Intra-document references (i.e. relative urls starting with "#") never
> > >   need to be encoded.
> >
> > I'm not sure I follow th logic here; why don't they have to be encoded?
> > Even this type of reference results in a new request to the server
> > when a user clicks on it, so I assume the new request must include
> > the session ID for session tracking to work.
> >
> 
> According to the URI RFC (2316?), a relative URI like this:
> 
>     <a href="#foo">Go to foo on this page</a>
> 
> should not generate a new request.  That also reflects my experience with them.
> Therefore, they need not be URL encoded.  (And, for good measure, where would
> you put the ";jsessionid=xxx" anyway, since the #foo part is supposed to go
> last?)

Okay, thinking a bit more about it, you're probably right. Sorry ;-)

Hans
-- 
Hans Bergsten		hans@gefionsoftware.com
Gefion Software		http://www.gefionsoftware.com

Mime
View raw message