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:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> 


Reply via email to