WebSphere Portal Server - Error handling

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > April 2006 > Error handling





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Error handling

2006-04-27, 8:07 am

Hello everybody

I have a JSF portlet where i have added

<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/error.jsp</location>
</error-page>

to web.xml but exceptions only show up in log and portlets shows 'This portlet is unavailable.' instead of going to the error page.

If is use a navigation rule to go to error.jsp it works fine, but I would like make sure that ALL exceptions incl. runtime end up on error.jsp.

Any indeas???




2006-04-27, 8:07 am

When using the navigation rule to go to error.jsp how do I get the exception over to the page.

I have tried

getRequestScope().put("exception", e);

and then added 'exception' as scripting variable.

BUT nothing occurs.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com