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 <d...@newfield.org>
To: Struts Users Mailing List <user@struts.apache.org>
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: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to