struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anil Kumar T" <>
Subject RE: Query in action messages
Date Wed, 15 Nov 2006 09:04:25 GMT

There is empty space before the key.. just observe..

errors.add(Error_FIELD_KEY,new ActionMessage(" error.required","Zip

should like ...

errors.add(Error_FIELD_KEY,new ActionMessage("error.required","Zip

hope it helps you...


-----Original Message-----
From: Hanmay Udgiri []
Sent: Wednesday, November 15, 2006 1:56 PM
Subject: Query in action messages


I am doing validation in my Action Form which is extending


In validate method,I am checking for mandatory field and adding error.

The error in is like this.

error.required=The {0) field is required field.

error.notInRange=The {0} field should be in between {1) and {2)

error.zipcode=Zip Code

And I am addding the the error in validate mehod like this

errors.add(Error_FIELD_KEY,new ActionMessage(" error.required","


But It is printing the error mesasges like this.

The error.zipcode field in reuqired field.

It works if I add error like this.

errors.add(Error_FIELD_KEY,new ActionMessage(" error.required","Zip

The Zip Code field in reuqired field.

Can anybody help on this


Thanks and Regards

Hanmayya Udgiri

Information transmitted by this e-mail is proprietary to Infinite Computer Solutions and /
or its Customers and is intended for use only by the individual or the entity to which it
is addressed, and may contain information that is privileged, confidential or exempt from
disclosure under applicable law. If you are not the intended recipient or it appears that
this mail has been forwarded to you without proper authority, you are notified that any use
or dissemination of this information in any manner is strictly prohibited. In such cases,
please notify us immediately at and delete this email from your records.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message