> -----Original Message-----
> From: Patrick Lightbody [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, February 19, 2003 5:38 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [OS-webwork] Proposal: Removing the Action Interface
> 
> 
> My only concern would be the fact that there is no more 
> interface could result in people doing "public String 
> execut()" or some other mispelling. Also, what if a method 
> doesn't return a String? How will we handle results now? As 
> of right now I'm like -1/2, but if the above situations can 
> be addressed, I'll switch to +1/2 I guess :)
> 
> -Pat
> 

Well, we could leave the interface, but make it optional, then. 

We could either:

A) make it a requirement that the method return a String result code,
since we already need to require that the method is zero-arg
B) If it returns a string, use that as the result code, otherwise, if it
returns boolean or Boolean, then if it returns true translate that to
SUCCESS, if it returns false, translate that to ERROR, and otherwise if
it doesn't throw an error, translate that to SUCCESS or if it catches an
exception, return ERROR.

I would go with B, myself.

Jason 


-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to