JSF 1.x generic exception handling

后端 未结 6 1056
耶瑟儿~
耶瑟儿~ 2021-02-02 14:25

If I have an exception in my business layer (e.g. a SQL exception in my JDBC connection bean), how can I propagate it with a custom message to a global error.jsp pa

6条回答
  •  盖世英雄少女心
    2021-02-02 15:02

    The JSF 2 now has a mechanism for handling exceptions:

    http://java.sun.com/javaee/6/docs/api/javax/faces/context/ExceptionHandler.html

提交回复
热议问题