tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Isaacs <Larry.Isa...@sas.com>
Subject RE: nested jsp:includes in tomcat3.2beta3
Date Wed, 06 Sep 2000 18:55:02 GMT
I'm not sure how your contexts are set up, but going two parents deep from /gaa-hurling/index.jsp
appears to be leaving the web application.  jsp:include uses a relative URL which isn't allowed
to leave the web application for security reasons.

Are there parts of the URL not shown below?  A simple test I tried that stayed within the
web application worked.  If your jsp:includes aren't trying to leave the web application,
please provide more detail and I'll check further.

Larry


-----Original Message-----
From: Donnchadh Ó Donnabháin [mailto:d_odonnabhain@vistech.ie]
Sent: Wednesday, September 06, 2000 1:57 PM
To: tomcat-dev@jakarta.apache.org
Subject: nested jsp:includes in tomcat3.2beta3


 When nesting jsp:includes across different directories I get the 
following error:
java.lang.NoClassDefFoundError:
gaa_0002dhurling/columnists/_0005f_0005f/_0005f_0005f/common/rightnavs/_0005f_0005f/_0005f_0005f/tips/_0002fgaa_0002dhurling_0002fcolumnists_0002f_0002e_0002e_0002f_0002e_0002e_0002fcommon_0002fright
It should be looking for the compiled class for /tips/tip.jsp
It seems the path to the class file is being truncated, but why are
 all the including pages used to generate the class name for the
included JSP?

/gaa-hurling/index.jsp includes ../../common/rightnavs/hurlinghome.jsp
and
/common/rightnavs/hurlinghome.jsp includes ../../tips/tip.jsp

making /common/rightnavs/hurlinghome.jsp include /tips/tip.jsp
 seems to fix the problem.

   Donnchadh

-- 

// Donnchadh Ó Donnabháin  mailto:d_odonnabhain@vistech.ie
// Vistech Software Ltd.   http://www.vistechsoftware.com
// Building 7, Cork Airport Business Park, Cork, Ireland
// Ph. +353-21-4315007      Fax +353-21-4315066


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org

Mime
View raw message