Re: Unable to get ActionEroor messages
Alexander Bischof <[email protected]>
| Newsgroups | gmane.comp.java.strutscx.user |
|---|---|
| Organization | FHG IVI |
| Message-ID | <[email protected]> |
Hello Reddy,
i have the same behavior, but i think this is correct. When you want to
see the XML document, you send a new request to the server, where now no
error is set.
@all Correct me, if i'm wrong.
greets
Alex
Reddy, Koti wrote:
> Hi Guys,
>
> I am unable to get the ActionError messages in the xml document.
> It gives the keys but not the error message. I would appreciate if any
> one can help me in this.
>
>
>
> This is what I do in my formBean
>
> ActionErrors errors = new ActionErrors();
>
>
>
> errors.add("assignTo",new ActionError("PRODUCT LINE AND PRODUCT
> ARE NOT GOOD"));
>
> errors.add("prodLineCd",new ActionError("PRODUCT DESCRIPTION IS
> NOT GOOD"));
>
>
>
> logger.info(THIS_CLASS + "AFTER ADDING ACTIONERRORS");
>
> return errors;
>
>
>
> and this is what I see when I do debugxml=true
>
>
>
> - <!--
>
>********** ERROR PARAMETERS **********
>
> * * -->
>
> *-* <http://ustjc3asdv1:7001/acm/approve_acct_save.do##> <errors>
>
> * * <assignTo />
>
> * * <prodLineCd />
>
> * * </errors>
>
>
>
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND