On Thu, Feb 20, 2003 at 10:46:45AM +0100, Philipp Meier wrote:
> On Wed, Feb 19, 2003 at 09:13:49PM +0100, Anders Engström wrote:
> > In the current code-base when an exception is thrown in action.execute()
> > a standard web-work page is rendered by ServletDispatcher. There is no
> > (?) way to override this.
> > 
> > It would be very useful if one could define an application error page in
> > views.properties
> > 
> > on-exception.view=error.jsp
> > 
> > or an action-specific exception view
> > 
> > HelloAction.on-exception.view=hello_error.jsp
> 
> I always thought that in case of an exception "error" is used as
> view. Or did this change somewhen? This was a reasonable behaviour,
> IMHO. I don't wan't to differenciate between "normal errors" (whatever
> they are) and "exceptions". If an exception slips throught, show
> "error". If you have to diferentiate, catch and handle in your Action
> class.
> 

As far as I can tell from looking at the code (CVS) in
ServletDispatcher/GenericDispatcher when an exception is thrown in the
Action.execute() ServletDispatcher will generate a WebWork specific
error page (HTTP Response Code 500). It will not select the "error"
view.

It's this WW specific error page I would like to override with an
application specific view (your standard error.jsp in most cases).

Also see my previous post on why the WW framework should handle
java.lang.Throwable instead of java.lang.Exception in these cases.

//Anders

-- 
|===================================|
|    Anders Engström                |
|    [EMAIL PROTECTED]            |
|    http://www.gnejs.net           |
|===================================|
|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