If the name is null, and there is a key, it will be used as the name. So,
no, you don't need to duplicate it.

musachy

On 4/24/07, Harring Figueiredo <[EMAIL PROTECTED]> wrote:

They can the different and serve different purposes.

The name attribute that you have there means that the value will be picked
from

yourAction.getUser().getZip().getCity();

The key will be used to lookup the resources files using the literal
string
'user.zip.city', of course.

Hope this helps.

Harring.

On 4/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I notice key is now preferred over getText() and am now curious about
> something else.  Is the name attribute necessary when using key?  I
would
> rather not duplicate myself unless S2 requires it.
>
>             <s:textfield name="user.zip.city" key="user.zip.city"
> size="40"
> readonly="true" />
>
> --
> Scott
> [EMAIL PROTECTED]
>




--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Reply via email to