JSF 1.x generic exception handling

后端 未结 6 1043
耶瑟儿~
耶瑟儿~ 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:13

    I came to same problem and found link describing how you can use ExceptionHandler in JSF2:

    http://jugojava.blogspot.com/2010/09/jsf-2-exception-handling.html

提交回复
热议问题