RE: getting jsp:include to work behind WEB-INF wall

2001-09-19 Thread Craig R. McClanahan



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 :
> > ||| 
> > ||| 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 
> >
> > I'm currently doing a  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
>




RE: getting jsp:include to work behind WEB-INF wall

2001-09-13 Thread VIAUD Cédric
Title: RE: getting jsp:include to work behind WEB-INF wall





I'am really astonishes, but thanks for this information.


Cédric


-Message d'origine-
De : Joey Gibson [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 12 septembre 2001 19:40
À : [EMAIL PROTECTED]
Objet : Re: getting jsp:include to work behind WEB-INF wall



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 :
||| 
||| 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 


    I'm currently doing a  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





RE: getting jsp:include to work behind WEB-INF wall

2001-09-12 Thread Wong, Albert
Title: 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.  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.  

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.


-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 :

> ||| 

> ||| 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 

> 

> I'm currently doing a  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





Re: getting jsp:include to work behind WEB-INF wall

2001-09-12 Thread Ted Husted

Tiles will be distributed with Struts in the 1.1 timeframe. It is in the
contrib folder now, and also available here: 

http://www.lifl.fr/~dumoulin/tiles/

Tom Tibbetts wrote:
> 
> Same result.  Where can I get Tiles?  How does it compare with Struts taglib???
> 
> What happens when you refer to a copy of sidenav.html that's at the
> >root?



Re: getting jsp:include to work behind WEB-INF wall

2001-09-12 Thread Ted Husted

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 :
> ||| 
> ||| 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 
> 
> I'm currently doing a  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



Re: getting jsp:include to work behind WEB-INF wall

2001-09-12 Thread Tom Tibbetts

I got it now  I made sure that sidenav has a jsp extension, not an HTML 
one.  Thanks for your help.


At 01:27 PM 9/12/01 -0400, you wrote:
>I have pages like this that work just fine:
>
><%@ taglib uri="/tags/tiles" prefix="tiles" %>
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>
>What happens when you refer to a copy of sidenav.html that's at the
>root?
>
>
>Tom Tibbetts wrote:
> >
> > I'm now trying the  with no success.  Here's what I'm 
> doing:
> >
> > some more
> > text
> >
> > the content of sidenav.html is just static html with the typical links to
> > other pages
> >
> > is this all because I'm behind WEB-INF




Re: getting jsp:include to work behind WEB-INF wall

2001-09-12 Thread Tom Tibbetts

Same result.  Where can I get Tiles?  How does it compare with Struts taglib???

What happens when you refer to a copy of sidenav.html that's at the
>root?




Re: getting jsp:include to work behind WEB-INF wall

2001-09-12 Thread Joey Gibson

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 :
||| 
||| 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 

I'm currently doing a  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




Re: getting jsp:include to work behind WEB-INF wall

2001-09-12 Thread Ted Husted

I have pages like this that work just fine:

<%@ taglib uri="/tags/tiles" prefix="tiles" %>

















What happens when you refer to a copy of sidenav.html that's at the
root?


Tom Tibbetts wrote:
> 
> I'm now trying the  with no success.  Here's what I'm doing:
> 
> some more
> text
> 
> the content of sidenav.html is just static html with the typical links to
> other pages
> 
> is this all because I'm behind WEB-INF



Re: getting jsp:include to work behind WEB-INF wall

2001-09-12 Thread Tom Tibbetts

I'm now trying the  with no success.  Here's what I'm doing:

some more 
text

the content of sidenav.html is just static html with the typical links to 
other pages

is this all because I'm behind WEB-INF

At 12:16 PM 9/12/01 -0400, you wrote:
>I haven't worked much with the jsp:include tag myself, but I do know
>that the Tiles tags can assemble pages stored under WEB-INF.
>
>-- Ted Husted, Husted dot Com, Fairport NY USA.
>-- Custom Software ~ Technical Services.
>-- Tel +1 716 737-3463
>-- http://www.husted.com/about/struts/
>
>
>Tom Tibbetts wrote:
> >
> > Hi All.  I know this may not be totally germain, but I bring it up because
> > I'm keeping all my JSPs behind the WEB-INF wall which is a Struts best
> > practice
> >
> > The problem I'm having is that I want to use a  and the page I
> > want to include is not showing up in my HTML output from the servlet
> > compiler.  I've tried putting copies of my include page everywhere with no
> > good results.  Has anyone else done this with success?? Thanks in 
> advance, Tom




RE: getting jsp:include to work behind WEB-INF wall

2001-09-12 Thread VIAUD Cédric
Title: RE: getting jsp:include to work behind WEB-INF wall





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 :


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 


Cédric


NB : i am french and you can write to me for further informations


-Message d'origine-
De : Cedric Dumoulin [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 12 septembre 2001 18:11
À : [EMAIL PROTECTED]
Objet : Re: getting jsp:include to work behind WEB-INF wall




  Hi,


  Url of page to include should be "/WEB-INF/pageToInclude.jsp". This work well
with tiles or templates insert tag on Tomcat. I have never try it with
. Also, I have read a mail about a jsp container that doesn't
work with such practice.


  Cedric


Tom Tibbetts wrote:


> Hi All.  I know this may not be totally germain, but I bring it up because
> I'm keeping all my JSPs behind the WEB-INF wall which is a Struts best
> practice
>
> The problem I'm having is that I want to use a  and the page I
> want to include is not showing up in my HTML output from the servlet
> compiler.  I've tried putting copies of my include page everywhere with no
> good results.  Has anyone else done this with success?? Thanks in advance, Tom





Re: getting jsp:include to work behind WEB-INF wall

2001-09-12 Thread Ted Husted

I haven't worked much with the jsp:include tag myself, but I do know
that the Tiles tags can assemble pages stored under WEB-INF. 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/


Tom Tibbetts wrote:
> 
> Hi All.  I know this may not be totally germain, but I bring it up because
> I'm keeping all my JSPs behind the WEB-INF wall which is a Struts best
> practice
> 
> The problem I'm having is that I want to use a  and the page I
> want to include is not showing up in my HTML output from the servlet
> compiler.  I've tried putting copies of my include page everywhere with no
> good results.  Has anyone else done this with success?? Thanks in advance, Tom



Re: getting jsp:include to work behind WEB-INF wall

2001-09-12 Thread Cedric Dumoulin


  Hi,

  Url of page to include should be "/WEB-INF/pageToInclude.jsp". This work well
with tiles or templates insert tag on Tomcat. I have never try it with
. Also, I have read a mail about a jsp container that doesn't
work with such practice.

  Cedric

Tom Tibbetts wrote:

> Hi All.  I know this may not be totally germain, but I bring it up because
> I'm keeping all my JSPs behind the WEB-INF wall which is a Struts best
> practice
>
> The problem I'm having is that I want to use a  and the page I
> want to include is not showing up in my HTML output from the servlet
> compiler.  I've tried putting copies of my include page everywhere with no
> good results.  Has anyone else done this with success?? Thanks in advance, Tom




getting jsp:include to work behind WEB-INF wall

2001-09-12 Thread Tom Tibbetts

Hi All.  I know this may not be totally germain, but I bring it up because 
I'm keeping all my JSPs behind the WEB-INF wall which is a Struts best 
practice


The problem I'm having is that I want to use a  and the page I 
want to include is not showing up in my HTML output from the servlet 
compiler.  I've tried putting copies of my include page everywhere with no 
good results.  Has anyone else done this with success?? Thanks in advance, Tom