Read the section "Type Conversion Error Handling" in:

http://struts.apache.org/2.x/docs/type-conversion.html

You need to define an "invalid.fieldvalue.<your property>" to do custom type conversion error.

Arpan Debroy wrote:
In my application  "id" attribute is int type of "Group" bean.

In my JSP I have written like that :-

<s:textfield name="group.id" value="%{group.id}"/>

Now if user puts a string into this text field, then error message come like
that

*invalid value for the field group.id

But I want to show the error message with only "id" not "group.id".

Is there anybody, who can show me any example how to do that.
*


--

Alberto A. Flores
http://www.linkedin.com/in/aflores


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to