aspose file tools*
The moose likes Struts and the fly likes Compare tiles-attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Compare tiles-attribute" Watch "Compare tiles-attribute" New topic
Author

Compare tiles-attribute

hal arres
Ranch Hand

Joined: Jan 10, 2003
Posts: 30
Hi,

I want to compare a tiles-attribute in a logic tag to constant string.


This is the way I save it:

<tiles:insert definition="layoutDefinition">
<tiles ut name="step" value="search"/>
</tiles:insert>


But later on I don't know how to access it in an logic tag

<logic:equal ??? value="search">
<span class="bold">property</span>
</logic:equal>


I can only access it throw this:

<tiles:getAsString name="step"/>


Can anyone tell me how to access the tiles-attribute in a logic tag?
John Smith
Ranch Hand

Joined: Sep 02, 2004
Posts: 61
In the tile you're inserting you'll need a tiles:useAttribute tag, then you just set the name field in your logic:equal to be the same as the id field in your useAttribute tag.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Compare tiles-attribute