This content has been marked as final.
Show 2 replies
-
2. Re: Error handling pattern?
nollie Nov 3, 2006 3:03 PM (in response to nollie)Thanks Roy! I had not seen that.
What I was hoping for was an opportunity to use my own error message which would fit within my margins and be a little more friendly. In any case someone had turned all those values off and I appreciate the tip.
I had hoped to use my own messages with some error-page tags in my web.xml.<error-page> <exception-type>java.lang.Exception</exception-type> <location>/WEB-INF/jsps/exception.jsp</location> </error-page> <error-page> <exception-type>javax.portlet.PortletException</exception-type> <location>/WEB-INF/jsps/portletException.jsp</location> </error-page>
but I can't seem to get this mechanism to work. If was using these error pages correctly would they fill the portlet, or replace the entire page? If the former, can you point me to information on the subject? I'm unsure which web.xml file this should be placed in - Do I define this for the entire portal or on a portlet by portlet basis?
Thanks again!