Check here - 
http://struts.apache.org/2.0.9/docs/action-configuration.html#ActionConf
iguration-WildcardMethod 

-Wes

> -----Original Message-----
> From: Victor Neo [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 27, 2007 12:15 PM
> To: user@struts.apache.org
> Subject: [S2]Actions with onLoad() and onSubmit() instead of execute()
> 
> 
> I wish to implement my S2 Action classes implementing ModelDriven with
> onLoad() and onSubmit() methods that replaces the default 
> execute() method.
> 
> When the user first views a page, onLoad() is called. If the 
> user submits the form, onSubmit() is called.
> My idea is to create an Interface with these 2 methods, and 
> implement them in my action classes.
> 
> However, I have currently no idea how to call onLoad() or 
> onSubmit() instead of the default execute().
> 
> Should I call the onLoad() or onSubmit() method via an 
> Interceptor(tried but couldn't work)? Or are there 
> interceptors that does the same thing?
> --
> View this message in context: 
> http://www.nabble.com/-S2-Actions-with-onLoad%28%29-and-onSubm
it%28%29-instead-of-execute%28%29-tf4529429.html#a12924800
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

Reply via email to