You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Andy Engle <st...@andyengle.com> on 2004/08/13 21:05:28 UTC

Displaying bean values within tiles

Hi all,

I hate to ask a real, boring, non-OT question on a Friday, but I am
working with a Struts application in which I am using tiles to organize
my views.  What I want to be able to do is pass in a bean with a String
(or, "string beans" for all you farmer types out there) into my tiles
setup and have that value displayed in my view.

I have my tiles definitions in tiles-defs.xml, and of course I have a
file template.jsp which handles my layout.

I have horsed around with using the <tiles:useAttribute> tag with the
String value, but I can't seem to get that to work -- for the page I
want to display it on, it either displays the default value for the
page as I have it set in tiles-defs.xml, or it doesn't print anything
at all.  I suppose my question could/should be how and where would I
use this useAttribute tag, as it seems to be the solution to my
problem.

Thanks for your help, and I look forward to receiving your responses.


Best Regards,
Andy


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