On Wed, 12 Sep 2001, Wong, Albert wrote:
> Date: Wed, 12 Sep 2001 10:55:56 -0700
> From: "Wong, Albert" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: RE: getting jsp:include to work behind WEB-INF wall
>
> The spec is not explicit about a RequestDispatcher being able to access
> JSP's under WEB-INF.
The Servlet 2.3 spec makes it much clearer that this is allowed.
> I know tomcat supports it but Weblogic doesn't. I
> posted this on the bea servlets newsgroup, and a bea representive
> responded this behaviour is not allowed in the spec.
>
BEA's interpretation is not correct.
> So, protecting JSP's under web-inf is a strategy that's only available
> to some servlet containers, depending on how they interpret they spec.
>
Craig
>
> -----Original Message-----
> From: Ted Husted [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 12, 2001 10:44 AM
> To: [EMAIL PROTECTED]
> Subject: Re: getting jsp:include to work behind WEB-INF wall
>
>
> I think the underlying problem is that Tom is trying to include a HTML
> file, or that the HTML file itself is problematic.
>
> A JSP is a servlet, and by spec, servlets can access WEB-INF. It's just
> that the clients can't.
>
> Joey Gibson wrote:
> >
> > On Wed, 12 Sep 2001 18:25:14 +0200, VIAUD Cédric <[EMAIL PROTECTED]>
> wrote:
> >
> > ||| If you read carefully the servlet spécification, you see that
> everything
> > ||| under "/WEB-INF" will nerver be served by HTTP server. So if you
> do a :
> > ||| <JSP:INCLUDE page="/WEB-INF/anything.jsp" flush="true"/>
> > ||| you make an HTTP request to the server. But the target is
> something it is
> > ||| not allowed to serve.
> > ||| So this couldn't work with in <JSP:INCLUDE>
> >
> > I'm currently doing a <jsp:include> in one page with all of my
> pages
> > living under WEB-INF using Tomcat 3.3 (from CVS) and it works
> perfectly.
> >
> > Joey
> >
> > -- Sun Certified Java2 Programmer
> > -- My Pocket Smalltalk Stuff: www.joeygibson.com/st
> > --
> > -- "We thought about killin' him, but we kinda
> > -- hated to go that far...." - Briscoe Darling
>