Then how come this is working?

<a
href="/domains/registration/support/fetch.asp?displang=<%=session.getAttribu
te("displayLanguage")%>&file=whybuy.jsp">Why Buy?</a>

Thanks
Gaurav
----- Original Message -----
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 23, 2001 11:09 AM
Subject: Re: the include action - is this possible


>
>
> 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
>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to