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.
Don't get me started about those stupid
subject: validate() and execute()
Bypass Struts Validation framework when using LookUpDispatch Action
does OracleDriver really precompile a PreparedStatement?
Error on submitting the form
Skip validation when form not submitted
Mapping servlet links with session bound random values
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014