Mailing List
Subject: Re: How to add action errors from action class's execute method
Hi stephan,
Even i too dont know abt that option...Another important thing is
that in html:message tag u must use {message=true} attribute
in order for message to get displayed...That thing is not
specified
Hi stephan,
For ur problem i recommend that u use action messages not actionerrors..
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/package-summary.html#doc.Other.messages
hope the above link helps..
Thanks
Prashanth
Stephan Wiesner [EMAIL PROTECTED] wrote:
Hi Anurag,
your
Hi Prashanth,
thanks that did indeed help. Though I don't understand, why I should not
use the actionerrors. There certainly should be a way to display a
selected one, if I can display all?
Stephan
Prashanth.S wrote:
Hi stephan,
For ur problem i recommend that u use action messages not
Hi stephan,
Even i too dont know abt that option...Another important thing is that in
html:message tag u must use {message=true} attribute in order for message to get
displayed...That thing is not specified in docs...I dont know why
HTH
Prashanth
Stephan Wiesner [EMAIL PROTECTED] wrote:
Hi stephan,
Try looking through the following url
http://www.javaranch.com/newsletter/Mar2002/newslettermar2002.jsp
Here they have explained how to use actionerrors...I too didnt knew abt this option...
Hope i havent misleaded u...
Thanks
Prashanth
Stephan Wiesner [EMAIL PROTECTED] wrote:
Hi
Hi,
U can create the ActionError object and add them in the ActionErrors class
in the action class.
Now to forward the request to some resource add the actionerrors object
method in the sendError().
Use saveErrors(request,errors) in the action class.
where errors
6 matches
Mail list logo