I am a newbie to Struts 2. I am using the Apache Struts 2 documentation for learning Struts 2.
I need a tutorial for custom exception handling in Struts 2; where should I look?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I recommend the guides; they cover most functionality, including exception handling.
The nutshell version is that the “exception” interceptor handles Struts 2 declarative exception handling. You can declare both global and exception-specific exception handlers. Each specifies the exception to handle and the result to be returned if the exception is caught:
If you have further questions after that, you’ll need to be more specific.