adspace


How the exceptions are handled in struts?

Answer Posted / Divyendu Singh

In Struts, exceptions can be handled using ActionException and ExceptionHandler interfaces. The ActionException is a runtime exception that is thrown by an action class when an unexpected error occurs. An ExceptionHandler is responsible for catching the ActionExceptions and handling them appropriately. You can define custom exception handlers in your struts-config.xml file to handle specific exceptions.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between filters and interceptors ?

1316


How is declarative handling of exceptions done in struts ?

1010


What are the contents on web.xml in struts application ?

1072


What do you know about validation plugin ?

1031


What is action chaining ?

1168