On 9/20/07, Adam Hardy <[EMAIL PROTECTED]> wrote: > Would it be a big deal to change > com.opensymphony.xwork2.DefaultActionInvocation > to allow my Action to return an enumeration instead of a string? >
How about creating a subclass of ActionSupport that has it's own execute style method, we could call it perform, that returns an enumeration, then by extension all your Actions could have the behaviour you're looking for. Something like: public class EnumActionSupport extends ActionSupport { public abstract Enum perform(); public String execute () { return perform().toString(); } //execute } //*EnumActionSupport (*Chris*) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]