>
>Maybe there's a more elegant solution :)
>

Yes - Martin's ...

<jsp:include
 page='<%= (String)session.getAttribute("yourVariable") + "/page.jsp" %>'
 flush="true"/>

[EMAIL PROTECTED] wrote:

>O I C...
>
>Well I think that you may need to build the string first as you wrote below:
>
><% String path = ..build path here.. ; %> 
>
>then:
>
><jsp:include page="<%=path%>" flush="true">
>
>Maybe there's a more elegant solution :)
>
>
>"Andy Kriger" <[EMAIL PROTECTED]> wrote:
>
>>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]>
>>
>>
>
>__________________________________________________________________
>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]>
>
>

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

Reply via email to