You could just set up a error page in your web.xml... Then you get your pretty error page for all errors, not just errors inside Actions...
> -----Original Message----- > From: Francisco Hernandez [mailto:[EMAIL PROTECTED] > Sent: Monday, October 06, 2003 8:44 PM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] handling NPEs in an action > > > what do you guys think about returning a result like > invalid.action.result or something along those lines when the action > executed throws NPE? this way I can just map an global-result > to show a > pretty screen to the users > > currently if an action throws NPE i get 500 Internal Server Error > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork