A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
validate() and execute()
Joined: Jun 15, 2010
Aug 25, 2010 01:17:30
My question is: what runs first in a
action class which extends ActionSupport - execute() or validate()?
It's the belief in the power of your dreams that counts! (SCJP 5.0, SCWCD 5.0)
Joined: Sep 29, 2008
Aug 25, 2010 06:01:08
Depends on your interceptor stack--validate() only runs if you have the validation interceptor.
It wouldn't make any sense to run execute() *before* validation, though, would it, since the workflow interceptor determines which result should be returned on a validation interceptor.
I agree. Here's the link:
subject: validate() and execute()
does OracleDriver really precompile a PreparedStatement?
Mapping servlet links with session bound random values
Skip validation when form not submitted
Bypass Struts Validation framework when using LookUpDispatch Action
Error on submitting the form
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014