I catch an exception and place it in an object returned to me Struts action
class. How can I see what this eception is in order to display the correct
message to the user?
The object containing the Exception is ErrorMessage which contains a
getException method which returns an Exception object. Do I use the equals
method to compare the returned exception to it's Exception class like so:
(ErrorMessage) errorMessage = (ErrorMessage)
serviceResponse.getErrorMessage();
if (errorMessage.getException().equals(InvalidCredentialsException)) {
// do something to display message.
}
Thanks.
To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm