struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert D. Morse" <rmo...@mdesignz.com>
Subject Using Tiles tags as values for Struts and HTML
Date Fri, 15 Feb 2002 21:35:55 GMT
I have a Tiles definition that looks something like this:

<tiles-definition>
	<definition name="test.definition" path=/templates/test.jsp">
		...a series of <put>'s....
		<put name="background" value="/images/test.gif"/>
	</definition>
</tiles-definition>

Now, I want to use the value of "background" as the value for something like
the background=" " in the HTML Body tag.  In other words:

<BODY background=<tiles:getAsString name="background"/> >

This doesn't work.
I've tried enclosing in quotes, escaped quote, apostrophe, and I can't seem
to make it work.  Any suggestions?

If you haven't tried Tiles with Struts, you're really missing out.


-------------------------------------------
Robert D. Morse
rmorse@mdesignz.com
PGP Key:  D9C4AA6A
PGP Finger Print:  ED56 DEEA 95CF AC99 C2B0  77D4 7D92 ACCA D9C4 AA6A


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message