Can't you just make a default implementation of execute in the base
Action class that calls perform?

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW/ 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


> -----Original Message-----
> From: Dimitri Valdin [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, December 04, 2001 5:29 AM
> To: Struts Developers List
> Subject: Re: Declarative Exception Handling
> 
> 
> 
> >I was thinking that anopther method, like execute() could just throw 
> >exception and be called by the ActionServlet, and the perform() form 
> >would not be called at all. So, like, deprecate perform() in favor of
> >execute() (or something), if we can get the controller to gracefully 
> >choose between them. But I'm not sure how that would work ;-)
> 
> what about introducing of additional configuration parameter 
> for ActionServlet in web.xml like:
> 
>     <init-param>
>       <param-name>perform</param-name>
>       <param-value>true</param-value>
>     </init-param>
> 
> which should be set by all legacy applications and would 
> cause perform() to be executed. Otherwise - execute().
> 
> Dmitri Valdin

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

Reply via email to