You can already define any (String) return codes you want. Success, error, input, and 
login are just the pre-defined ones. 

The ability to define which view to forward to based on exception type does not exist, 
except for ResultException, which encapsulates the information for which view to 
forward to.

Jason

> -----Original Message-----
> From: Anders Engström [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, February 19, 2003 10:56 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [OS-webwork] re: some suggestion about ww2.0
> 
> 
> On Thu, Feb 20, 2003 at 01:37:49AM +1000, Cameron Braid wrote: [snip]
> > You could then specify a view to go to based on either 
> ExceptionType, 
> > or a return type
> 
> [snip]
> 
> This is a functionality I miss in WW a lot. You can only 
> specify views based on success, error, input etc (please 
> correct me if I'm wrong). 
> - but it would be very nice if you could select view based on 
> Exception 
> or user-defined return-values:
> 
> (pseudo code):
> 
> AnAction.action=TheAction
> AnAction.success=good.jsp
> AnAction.error=bad.jsp 
> AnAction.error.java.net.MalformedURLException=noconnection.jsp
> AnAction.user-defined=better.jsp
> 
> I suppose something similar could be accomplished by chaining 
> actions and redirecting (just guessing).
> 
> I'm pretty new with WW - so let me know if these features 
> already exists (will exist in WW2).
> 
> //Anders
> -- 
> |===================================================|
> |    Anders Engström                                |
> |    [EMAIL PROTECTED]                            |
> |    http://www.gnejs.net                           |
> |    PGP-Key: http://dmzc.gnejs.net/public_key.asc  | 
> |===================================================|
> |    Your mind is like an umbrella.                 |
> |    It doesn't work unless you open it.            |
> |      /Frank Zappa                                 |
> |===================================================|
> 
> 
> 
> 


-------------------------------------------------------
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