Brad Cupit wrote:
> I'm not sure which order the scopes are checked
For anyone who's interested, #attr appears to check scopes in the
following order:
1. page / action *
2. request
3. value stack
4. session
5. application
* I used <s:set> to set one value at page scope and one at action scope,
and whichever was declared last was the one that #attr found first.
<s:set name="stuff" value="%{'action'}" scope="action" />
<s:set name="stuff" value="%{'page'}" scope="page" />
<s:label value="%{#attr.stuff}" />
outputs page
<s:set name="stuff" value="%{'page'}" scope="page" />
<s:set name="stuff" value="%{'action'}" scope="action" />
<s:label value="%{#attr.stuff}" />
outputs action
I'm not really sure what the action scope is. Perhaps it's only related
to <s:action>. Either way, maybe this post will help someone searching
the mailing list!
Brad Cupit
Louisiana State University - UIS
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]