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]

Reply via email to