If you want to save messages, call saveMessages() -- not saveErrors.
On Wed, Nov 2, 2011 at 3:12 PM, Anjib Mulepati wrote:
> So I tried the following code but still same. What I am doing wrong.
>
> 1. Inside action class
> InfoForm iForm = (InfoForm)form;
>Integer age = iForm.getNumber()
So I tried the following code but still same. What I am doing wrong.
1. Inside action class
InfoForm iForm = (InfoForm)form;
Integer age = iForm.getNumber();
if(age<21){
ActionErrors formErrors = new ActionErrors();
formErrors.add("age", new ActionMessage(
The tag has an 'message' attribute. Set that to true to
iterate over messages; set it to false to iterate over errors.
Paul
On Wed, Nov 2, 2011 at 2:14 PM, Anjib Mulepati wrote:
> Hi All,
>
> I have been using ActionErrors to display all kind of message from form
> submission action. Problem w
Hi All,
I have been using ActionErrors to display all kind of message from form
submission action. Problem with that is I have to display message using
tag and I can't distinguish between success and failure
message.
I want to store error messages and success message in different object
so
4 matches
Mail list logo