You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Madan Narra <ma...@gmail.com> on 2007/06/14 08:05:03 UTC

[Tobago] Exception Handling in Tobago Pages

Hi All,

I need to show up the Exception occured in the Tobago Page when an Error
Occures in Server, say 500 error.

I configured the error and its jsp page in web.xml , and am able to see the
page when an error occures.

But am confused how to show up the exception that is occured.

This is the JSP page am using to display the Exception

<%@ page isErrorPage="true"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/tobago/component" prefix="tc" %>
<%@ taglib uri="http://myfaces.apache.org/tobago/extension" prefix="tx" %>
<%@ taglib tagdir="/WEB-INF/tags/layout" prefix="layout" %>
<layout:errorpage>
    <jsp:body>
        <tc:panel width="770px" height="500px" id="cartSummaryPanel">
            <tc:out value="Error occured while processing your request"
markup="error"/>
            <tc:out value="<br/><br/>" escape="false"/>
            <tc:out value="Please select the error message show below and
mail it to mycompany@company.com" markup="error"/>
            <tc:out value="<br/><br/>"
escape="false"/>
            <tc:out value="" markup="error"/>  <--- ******* Display the
Exception here *******
        </tc:panel>
    </jsp:body>
</layout:errorpage>

How can i call up the default implicit " exception " Object to show up the
exception in this page... ?

-- 
Regards,
Madan N

Re: [Tobago] Exception Handling in Tobago Pages

Posted by Madan Narra <ma...@gmail.com>.
Hi Bernd,

Thnx for ur reply...

I havent checked the demo app for error handling...

Its working fine now...

Regards,
Madan N

Re: [Tobago] Exception Handling in Tobago Pages

Posted by Bernd Bohmann <be...@atanion.com>.
Hello Madan,

please look at the error handling example in the tobago-example-demo.

Regards

Bernd

Madan Narra wrote:
> Hi All,
> 
> I need to show up the Exception occured in the Tobago Page when an Error
> Occures in Server, say 500 error.
> 
> I configured the error and its jsp page in web.xml , and am able to see the
> page when an error occures.
> 
> But am confused how to show up the exception that is occured.
> 
> This is the JSP page am using to display the Exception
> 
> <%@ page isErrorPage="true"%>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> <%@ taglib uri="http://myfaces.apache.org/tobago/component" prefix="tc" %>
> <%@ taglib uri="http://myfaces.apache.org/tobago/extension" prefix="tx" %>
> <%@ taglib tagdir="/WEB-INF/tags/layout" prefix="layout" %>
> <layout:errorpage>
>    <jsp:body>
>        <tc:panel width="770px" height="500px" id="cartSummaryPanel">
>            <tc:out value="Error occured while processing your request"
> markup="error"/>
>            <tc:out value="<br/><br/>" escape="false"/>
>            <tc:out value="Please select the error message show below and
> mail it to mycompany@company.com" markup="error"/>
>            <tc:out value="<br/><br/>"
> escape="false"/>
>            <tc:out value="" markup="error"/>  <--- ******* Display the
> Exception here *******
>        </tc:panel>
>    </jsp:body>
> </layout:errorpage>
> 
> How can i call up the default implicit " exception " Object to show up the
> exception in this page... ?
>