2008/10/25 Steven Lee <[EMAIL PROTECTED]>: > <tiles:putAttribute name="head" type="string"> > <% > String tmp = "JSP Test"; > %> > </tiles:putAttribute> > > <tiles:putAttribute name="content" type="string"> > <p><%= tmp %></p> > </tiles:putAttribute>
The "tmp" variable is visible only inside the first <tiles:putAttribute> tag. This is a JSP specification. Simply specify the "tmp" variable in a place that is visible to both tags. Antonio
