So, do you have any suggestion for me. I spent one day but can not solve it.

Thanks,
Binh Pham


mraible wrote:
> 
> Unfortunately, JSF doesn't have a concept of global exceptions - at
> least not one that I know of.
> 
> Matt
> 
> On 9/18/07, phamvubinh <[EMAIL PROTECTED]> wrote:
>>
>> Hi, I'm using JSF framwork and got the same error. Can you tell me the
>> way to
>> config my app.
>>
>> Thanks in advance.
>>
>> Binh Pham
>>
>>
>>
>> Matt Raible-3 wrote:
>> >
>> > You should be able to use the "global-exceptions" concept in Struts to
>> > configure your app to render a particular JSP when this exception
>> > happens.
>> >
>> > Just modify metadata/web/global-exceptions.xml.  Here's an example from
>> > Equinox:
>> >
>> >     <global-exceptions>
>> >        <exception key="error.required"
>> > type="org.springframework.dao.DataAccessException"
>> >                   path="/dataAccessFailure.jsp"/>
>> >     </global-exceptions>
>> >
>> > dataAccessFailure.jsp:
>> >
>> > <%@ include file="/taglibs.jsp" %>
>> >
>> > <h3>Data Access Failure</h3>
>> > <p>
>> >     <c:out
>> > value="${requestScope['org.apache.struts.action.EXCEPTION'].message}"/>
>> > </p>
>> >
>> > <!--
>> > <%
>> > Exception ex = (Exception)
>> > request.getAttribute("org.apache.struts.action.EXCEPTION");
>> > ex.printStackTrace(new java.io.PrintWriter(out));
>> > %>
>> > -->
>> >
>> >  "<c:url value='/' " onclick="history.back(); return
>> > false">&#171; Back
>> >
>> >
>> > Matt
>> >
>> > On 7/26/05, Phil <[EMAIL PROTECTED]> wrote:
>> >> Hi All,
>> >>
>> >> I'm using Struts, Hibernate and Spring in the middle.
>> >>
>> >> I have a FK integrity constraint on a table. When I try to delete the
>> >> parent
>> >> row, I get this error message displayed in the browser:
>> >>
>> >> The process did not complete. Details should follow.
>> >> Warning ORA-02292: integrity constraint (ESOL_DEV.FK611A9037BCD2024F)
>> >> violated - child record found
>> >>
>> >> The error is correct but is there a standard way or a way already
>> built
>> >> into
>> >> appfuse to intercept this or intercept the
>> >> org.springframework.dao.DataIntegrityViolationException and send a
>> pretty
>> >> error message to the browser?
>> >>
>> >> Coding a bunch of try catch throw stuff for my data access would seem
>> to
>> >> be
>> >> not taking advantage of Spring.
>> >>
>> >> Thanks For Any Help,
>> >> Phil Hersh
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-appfuse-user--Appfuse-Database-Error-Message-Handling-tf176396s2369.html#a12769905
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-appfuse-user--Appfuse-Database-Error-Message-Handling-tf176396s2369.html#a12770585
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to