tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lanxiazhi <>
Subject Re: is there any difference?
Date Thu, 23 Jul 2009 05:16:57 GMT
hello,I found this in the servlet specification:
• The deployment descriptor lists the following welcome files.
• The static content in the WAR is as follows
• A request URI of /foo will be redirected to a URI of /foo/.
• A request URI of /foo/ will be returned as /foo/index.html.
• A request URI of /catalog will be redirected to a URI of /catalog/.
which matches what David said.

2009/7/23 Caldarale, Charles R <>

> > From: David Smith []
> > Subject: Re: is there any difference?
> >
> > I'm fairly sure there is no difference between the two.
> There's no effective difference, but the HTTP RFC requires the trailing
> slash when a specific resource is not in the URL.  That's why the browser
> adds the slash automatically to the host name URL, and the server sends a
> 302 back when the URL does not target a specific resource.
> As you might expect, Tomcat does follow the HTTP RFC.
>  - Chuck
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message