Hi,
I've another tag syntax question
This not work:
<s:checkbox name="userId" value="selectedUserId" fieldValue="userId"/>
This work
<s:checkbox name="userId" value="selectedUserId" fieldValue="%{userId}"/>
This also work
<s:checkbox name="userId" value="%{selectedUserId}" fieldValue="%{userId}"/>
Why we need to use %{} for fieldValue but value doesn't require?
Regards
Louis
________________________________
From: Dale Newfield <[email protected]>
To: Struts Users Mailing List <[email protected]>
Sent: Friday, July 24, 2009 3:31:36 PM
Subject: Re: tag syntax question
Mitch Claborn wrote:
> Is either of the following more or less efficient than the other?
>
> <s:property value="#request.something" />
> <s:property value="%{#request.something}" />
I always argue that the latter should be used, just to avoid unnecessary
confusion later on.
-Dale
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]