Then you'll need something like this:
<jsp:include
page='<%= (String)session.getAttribute("yourVariable") + "/page.jsp" %>'
flush="true"/>
unless you're using JSTL, in which case you could use this:
<c:import url="${sessionScope.yourVariable}/page.jsp"/>
which is somewhat cleaner, to say the least.
--
Martin Cooper
> -----Original Message-----
> From: Andy Kriger [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 2:46 PM
> To: Struts Users Mailing List
> Subject: RE: newbie include question
>
>
> Sorry - I wasn't clear enough I my explanation. I want to use
> the dynamic
> info to form the path attribute.
>
> e.g.
> path="<myDynamicData>/page.jsp"
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 17:30
> To: "Struts Users Mailing List"
> Subject: RE: newbie include question
>
>
> Andy,
>
> I think you could use the syntax:
>
> <jsp:include page="/page.jsp" flush="true">
> <jsp:param name="yourVariable" value="<%=variable%>"/>
> </jsp:include>
>
> "Andy Kriger" <[EMAIL PROTECTED]> wrote:
>
> >I have information in a session variable that I would like
> to use as part
> of
> >a jsp:include (or a bean:include if that'll solve the
> problem). Here's the
> >problem I am running into, how do you pass the dynamic info to the
> >jsp:include path attribute?
> >
> ><jsp:include path="<bean:write name="..." scope="session"
> />" /> is not
> >valid - but i figure somebody must've encountered this
> problem before and
> >come up with a solution
> >
> >something like a nested include
> ><jsp:include>
> ><bean:write name="..." scope="session" />
> ></jsp:include>
> >
> >is this possible?
> >
> >thx
> >andy
> >
> >
> >
> >--
> >To unsubscribe, e-mail: �
> <mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
>
> __________________________________________________________________
> The NEW Netscape 7.0 browser is now available. Upgrade now!
> http://channels.netscape.com/ns/browsers/download.jsp
>
> Get your own FREE, personal Netscape Mail account today at
> http://webmail.netscape.com/
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>