If you're going to use a request-time attribute value, the entire expression
must reside within "<%= %>":
<put name="header"
value='<%= "header" + flag + ".jsp" %>'/>
Of course, that assumes that the "value" attribute is configured to accept
request-time values.
Quoting Evgeny Gesin <[EMAIL PROTECTED]>:
> I use an in-house developed library similar to Struts
> Tiles.
>
> Consider this line <put name='header'
> value='header.jsp'/>. At run-time it will send
> header.jsp to web browser. I need to select a specific
> .jsp using a flag like <put name='header'
> value='header<%= flag %>.jsp'/>, so this will send,
> for example, header1.jsp, header2.jsp and so on.
>
> Unfortunately Tiles doesn't evaluate expressions <%=
> .. %> at run-time, so the uri will header<%= flag
> %>.jsp instead of necessary header1.jsp.
>
> I'm looking for a solution other than using "if".
>
> Evgeny
> Javadesk
--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]