dev@glassfish.java.net

Re: Does the Servlet spec require this behavior?

From: Sathyan Catari <Sathyan.Catari_at_Sun.COM>
Date: Fri, 05 Jun 2009 11:40:00 -0700

In the absence of application descriptor, you can use the
default-web.xml and turn on the
listing to "true" for <param-name>listings</param-name>.
By default it is set to "false" so you don't see the listings when
welcome/index file is absent.

HTH
Sathyan


Vince Kraemer wrote:
> Hi,
>
> I created a web app that has a no descriptor files and a single JSP.
>
> If the jsp is named index.jsp, I see the content when I access
> http://localhost:8080/WarName/... this is a good thing
>
> If the jsp is named foobar.jsp, I see a 404 error when I access the
> same URL... Is the spec forcing us to be so useless?
>
> I would think that the server could present a directory listing for
> the web app... so the user would have a chance to click on foobar.jsp
> and see its content. That would be friendlier for developers. It
> probably should not work that way in production, though.
>
> One other thing I noticed... There is no error in the server log that
> would alert the developer to the root cause of the problem.
>
> I did this test with v3 promoted build 49.
>
> Thanks,
> vbk
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>