tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: [repost] loading class files
Date Tue, 27 Nov 2001 16:15:51 GMT
I see Craig has answered on this.  Since he was involved in writing the spec, 
he's most certainly the better person to answer this.

Thanks Craig for the info.

--David

On Tuesday 27 November 2001 10:35 am, you wrote:
> You're right.  The spec does not say jsps can not be stored under WEB-INF,
> but it does say and I quote the spec:
>
> "No file contained in the WEB-INF directory may be served directly to a
> client by the container" -- Servlet 2.3 spec pg 60
>
> Given that, what good is storing a .jsp (or .gif, jpg, pdf, etc, ...) file
> in WEB-INF if the client can't request it?
>
> IMHO, files the client directly request should be outside the WEB-INF
> directory.  Individual mileage may vary though.
>
> --David
>
> On Monday 26 November 2001 02:08 pm, you wrote:
> > > Note on the other stuff: Classes used on the server
> > > side should be in a package structure under
> > > WEB-INF/classes to work correctly. JSPs,
> > > static content, and client-side applets should
> > > all be outside the WEB-INF folder for proper
> > > operation. This is defined in the spec and is
> > > required for all applications conforming to it.
> > > Hope this clears some mystery.
> > > --David Smith
> >
> > I cannot find any place in the spec that says that
> > JSPs, etc. cannot be under WEB-INF.  I have seen
> > many suggestions that this is a good place to put
> > them to prevent direct access.  In what way doesn't
> > this provide "proper operation".
> >
> > Frank Lawlor
> > Athens Group, Inc.
> > (512) 345-0600 x151
> > Athens Group, an employee-owned consulting firm integrating technology
> > strategy and software solutions.
> >
> >
> >
> >
> > --
> > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message