OK - I'll say again - it IS optional AND explicit :)

(One way to make it more explicit is make execute() final in AS?)

If you don't want 3 phase action support (for want of a better name) - use
BaseActionSupport - which provides error messages and i18n.

If you DO want it, use ActionSupport - which subclasses the above and
provides a doValidation, doDefault, doExecute cycle.

It _also_ provides backward compatibility (damn I sound like Hani here!)
which is a good thing as there is no real need to break it unnecessarily?

I maintain that 95% of web actions are neatest when done with 3-phase
support - it's what we use most in almost all our apps! Are we just that
different to the rest of the world? How do y'all do it? (Maybe that will
help me come to terms with removing it)

M

On 3/7/03 6:07 AM, "Jason Carreira" ([EMAIL PROTECTED]) penned the
words:

> 
> 
>> -----Original Message-----
>> From: Erik Hatcher [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, July 02, 2003 3:53 PM
>> To: [EMAIL PROTECTED]
>> Subject: Re: [OS-webwork] Default workflow
>> 
>>> Sounds great!  I was going to suggest something similar with the
>> ValidationInterceptor.  It was confusing that it called execute() (to
>> me, coming from a Struts experience) when validations failed... and
>> then I found ActionSupport that took care of it.
>> 
>> I'd prefer the validation automatically go back to INPUT, so if this
>> isn't going to be available in a built-in interceptor I'd roll my own
>> probably.
>> 
>> This may be completely out of line with what you're talking
>> about, just 
>> sharing my thoughts/confusion on ValidationInterceptor.
>> 
>> Erik
>> 
> 
> The idea is just to make it optional and explicit... There have been a
> lot of people confused (repeatedly) about getting "input" returned
> without it even hitting your action... Especially if you're not even
> return "input" anywhere in your code and you didn't map a page for it! I
> must say I've fallen victim to this myself, so making this explicit
> should make you have to think about it.
> 
> Jason
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to