On Tue, 23 Oct 2001, Gaurav Khanna wrote:
> Date: Tue, 23 Oct 2001 10:21:43 -0700
> From: Gaurav Khanna <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: 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") ).
That is actually not the problem. See below.
> I
> want
> > to confirm whether this is the case:
> > <jsp:include
> > page="<%=session.getAttribute("baseUri")%>include/stylepicker.jsp"
> > flush="true" />
When you use a runtime expression, it must replace the *entire* attribute
value, not just part of it. Try this instead:
<jsp:include page='<%= session.getAttribute("baseUri") +
"include/stylepicker.jsp" %>' flush="true"/>
Note that I used single quotes around the entire expression to avoid
confusion with the double quotes inside the expression.
Craig