tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lanxiazhi <lanxia...@gmail.com>
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.
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
• The static content in the WAR is as follows
/foo/index.html
/foo/default.jsp
/foo/orderform.html
/foo/home.gif
/catalog/default.jsp
/catalog/products/shop.jsp
/catalog/products/register.jsp
• 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 <Chuck.Caldarale@unisys.com>

> > From: David Smith [mailto:dns4@cornell.edu]
> > 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
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> 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.
>
>

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