tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sergiodegioia@libero.it" <sergiodegi...@libero.it>
Subject Re: jsp:include
Date Mon, 24 Dec 2001 09:23:12 GMT
Your destination must be a string starting with a slash for it to be 
used as a value of the attribute page in jsp:include tag. Such a 
destination must represent your resource relative to the context root.
So starting with "../" is incorrect. Try with "/component.jsp"
> 
> If anyone can shed some light on this i waould appreciate it, thanks i
n
> advance.
> 
> I am building a system where i compute the name of the page.  When i d
o this
> the page attribute in the jsp:include directive doen't get evaluated. 
 It is
> really simple and looks like:
> 
> .....
> <%
> String destination = "../" + Bean.getOwnerType ( ).toLowerCase ( ) +
> "/component.jsp";
> %>
> 
> <jsp:include page="<%= destination %>" flush="true" />
> 
> .....
> 
> Should this work?
> 
> What am i doing wrong?
> 
> Thanks
> 
> 
> --
> 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