Re: Managing both success and failure message [S 1.3.8]

2011-11-02 Thread Paul Benedict
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()

Re: Managing both success and failure message [S 1.3.8]

2011-11-02 Thread Anjib Mulepati
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(

Re: Managing both success and failure message [S 1.3.8]

2011-11-02 Thread Paul Benedict
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

Managing both success and failure message [S 1.3.8]

2011-11-02 Thread Anjib Mulepati
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