A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Jan 10, 2003
Nov 02, 2004 18:10:00
I want to compare a tiles-attribute in a logic tag to constant
This is the way I save it:
ut name="step" value="search"/>
But later on I don't know how to access it in an logic tag
<logic:equal ??? value="search">
I can only access it throw this:
Can anyone tell me how to access the tiles-attribute in a logic tag?
Joined: Sep 02, 2004
Nov 02, 2004 20:50:00
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.
It is sorta covered in the
JavaRanch Style Guide
subject: Compare tiles-attribute
TilesAction, how to???
Accessing bean in logic Tag
tiles and attributes
HELP with tiles
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014