struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <>
Subject Re: form validation, assigning context
Date Wed, 09 Jun 2004 13:33:51 GMT
No is the short answer, but theres nothing to stop you storing them in the
request under your own key as well in your ActionForm's validate method.


----- Original Message ----- 
From: "Bullard, James" <JBullard@AR.SONY.COM>
To: <>
Sent: Tuesday, June 08, 2004 9:26 PM
Subject: form validation, assigning context

> Is there anyway to declare that a validator should create ActionErrors
> a given key. For instance in my code I write something like this:
> new ActionErrors("user-errors", new ActionError("errors.user.invalid",
> username));
> Then in the page (I am using velocity, but this is not important bear with
> the code) I have something like this:
> #displayErrorMarkup("user-errors")
> The problem is that when this macro goes and fetches the errors it uses
> key "user-errors" to fetch the errors, so errors which the validator
> generated will not be displayed, I did not see anyway for a form element
> validation.xml to be declared with ActionErrors context key which I think
> quite necessary, so I am probably missing something simple.
> Thanks in advance,
> jim
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message