I should forward an ApplicationException to MyAction class and then, MyAction finds an appropriate jsp based on the message in ApplicationException. But, how can I know the SQLException thrown by persistance tire is duplicate entery SQLException or other SQLException? Thanks.
----- Original Message ----- From: "Mike Jasnowski" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, May 27, 2003 2:45 PM Subject: RE: Newbie question: how does MyAction class handle Exceptions? > Return a forward appropriate to the exception caught? > > -----Original Message----- > From: Leon [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 27, 2003 2:45 PM > To: Struts Users Mailing List > Subject: Newbie question: how does MyAction class handle Exceptions? > > > Hi, > > I have DataAccessException thrown by DAO class and catched by > BusinessDeligate class. ApplicationException thrown by BusinessDeligate > class and catched by MyAction class. I want to send a jsp to clients to > display a message that the clients submit a duplicate entry in their > request. What should I do for this? > Thanx. > > Leon > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]