--- Balazs Michnay <[EMAIL PROTECTED]> wrote:
> I'm relatively new to Struts and am trying to get
> the Validation Framework working without success.

You neither set validate='true' on your Action (in the
struts-config action-mapping configuration element)
nor call the form bean's 'validate' method (from, say,
your Action).

FWIW, it's usually sufficient to simply post the
relevent portions of the config and source files
rather than providing a ZIP file of your entire
project.

To answer your next question, you can either create an
action-mapping with validate="false" to forward to the
form's JSP page or you can set validate="false" and
call validate manually from within your Action based
on whether or not it's a GET or POST request (assuming
you submit with a POST; personally I have this
behavior in an Action base class and never use the
automagic validation, but this has been discussed to
death in the past :)

d.



 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to