You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Christian J. Dechery" <ch...@finep.gov.br> on 2002/08/09 15:22:38 UTC

using INCLUDE with crossContext

I'm trying to use the crossContext feature to include a file that is in a context (that I call /global/) in other contexts...
 
/global is is configured in server.xml with crossContext="true", but when I do <%@include file="/global/includes/file.jsp"%>
it gives me an error message with file not found...
 
what is wrong?
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| christian@finep.gov.br
.:| (21) 2555-0332


RE: using INCLUDE with crossContext

Posted by Andrew <an...@attbi.com>.
The include directive is relative to the webapp.  This is as specified
in the JSP Spec.  From my understanding, you can use the <jsp:include />
to retrieve files from other contexts.


- Andrew

> -----Original Message-----
> From: Christian J. Dechery [mailto:christian@finep.gov.br] 
> Sent: Friday, August 09, 2002 9:23 AM
> To: tomcat-user@jakarta.apache.org
> Subject: using INCLUDE with crossContext
> 
> 
> I'm trying to use the crossContext feature to include a file 
> that is in a context (that I call /global/) in other contexts...
>  
> /global is is configured in server.xml with 
> crossContext="true", but when I do <%@include 
> file="/global/includes/file.jsp"%>
> it gives me an error message with file not found...
>  
> what is wrong?
>  
> .:| Christian J. Dechery
> .:| FINEP - Depto. de Sistemas
> .:| christian@finep.gov.br
> .:| (21) 2555-0332
> 
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>