In Struts you can handle the exceptions in two ways :
a) Declarative Exception Handling
You can either define global exception handling tags in your struts-config.xml or define the exception handling tags within <action>..</action> tag.
Example
<exception key="database.error.duplicate" path="/UserExists.jsp" type="mybank.account.DuplicateUserException"/>
b) Programmatic Exception Handling
Here you can use try / catch block to handle the exception.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.