You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rahul <ra...@nucleussoftware.com> on 2003/04/17 15:19:32 UTC
Using dynamic page names in jsp:include
Hi,
We have a requirement wherein we need to determine the set of views/blocks to be shown to the user based on some logic. We are trying to use the following logic in the jsp file, but it does not work:
<logic:iterate id="blockSequenceTemp" name="PersonalSchemeAF" property="blockSequence">
<jsp:include page="<bean:write name="blockSequenceTemp" />" />
</logic:iterate>
The following logic however does work:
<logic:iterate id="blockSequenceTemp" name="PersonalSchemeAF" property="blockSequence">
<jsp:include page="<%=(String)blockSequenceTemp%>" />
</logic:iterate>
Is this the only way to achieve the dynamicity. Wasn't struts supposed to replace the above(<% and <%=)?
Can you please suggest how to achieve it by using struts?
Regards,
Rahul