You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gaurav Khanna <ga...@nativenames.net> on 2001/10/22 22:04:57 UTC

Re: the include action - is this possible

Hi,
I believe the following does not work. The include action cannot have
runtime access of variables "i.e. session.getAttribute("baseUri") ). I want
to confirm whether this is the case:
<jsp:include
page="<%=session.getAttribute("baseUri")%>include/stylepicker.jsp"
flush="true" />

I get the following exception:
org.apache.jasper.compiler.ParseException:
/domain/checknames/english_form.jsp(6,51) Attribute baseUri has no value

Thanks


Re: the include action - is this possible

Posted by Nikola Milutinovic <Ni...@ev.co.yu>.
> Hi,
> I believe the following does not work. The include action cannot have
> runtime access of variables "i.e. session.getAttribute("baseUri") ). I want
> to confirm whether this is the case:
> <jsp:include
> page="<%=session.getAttribute("baseUri")%>include/stylepicker.jsp"
> flush="true" />
> 
> I get the following exception:
> org.apache.jasper.compiler.ParseException:
> /domain/checknames/english_form.jsp(6,51) Attribute baseUri has no value

The problem, it seams, is not with the <jsp:include ...>, but with "session.getAttribute( "baseUri" )" - as it reports. Are you inside a session?

Nix.