The tag's key
attribute used instead of three ones name
,value
,label
. As far as two of them you have already defined, you can change
<s:textfield label="%{getText('searchResults.'+#tag)}" name="%{#tag}" />
The value is retrieved by the name
attribute. You should provide a getter for the name evaluated in the name attribute. Note, getText()
is available if your action extends ActionSupport
. And you have to force name evaluation in the name tag.