a) Declarative Exception Handling: You can either define global exception handling tags in your struts-config.xml or define the exception handling tags within
Example:
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.
SOURCE : www.referjava.com
No comments:
Post a Comment