RE: ApplicationException sample

2005-07-20 Thread Rivka Shisman
Erik, Glen, Laurie - Thanks for your help After doing some more homework about exception handling - I have another question: If my Sturts Action calls directly to EJB methods (with no delegate Layer) - then I have to catch RemoteException for all runtime exceptions? Or is there a better way to

Re: ApplicationException sample

2005-07-20 Thread Ed Griebel
Rivka- Since you're developing from scratch, you might want to put a layer in-between your EJBs and Struts. Some will call it business logic, data access object (DAO), or Helper classes. This allows you to separate the struts-related concerns from business-related concerns. It also solves the

Re: ApplicationException sample

2005-07-20 Thread erikweber
-Original Message- From: Ed Griebel [EMAIL PROTECTED] Sent: Jul 20, 2005 9:19 AM To: Struts Users Mailing List user@struts.apache.org Subject: Re: ApplicationException sample Rivka- Since you're developing from scratch, you might want to put a layer in-between your EJBs and Struts. Some will call

RE: ApplicationException sample

2005-07-20 Thread Rivka Shisman
). Thanks Rivka -Original Message- From: Ed Griebel [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 3:19 PM To: Struts Users Mailing List Subject: Re: ApplicationException sample Rivka- Since you're developing from scratch, you might want to put a layer in-between your EJBs

Re: ApplicationException sample

2005-07-20 Thread Glen Mazza
I think a good example of the manager classes are in the sample Struts-based application generated by AppFuse: https://appfuse.dev.java.net/. I have yet to see the full benefits of these manager classes, however I am currently attributing this to my general newbieness with Java web

Re: ApplicationException sample

2005-07-20 Thread Leon Rosenberg
Shalom Rivka, -Ursprüngliche Nachricht- Von: Rivka Shisman [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 20. Juli 2005 18:50 An: Struts Users Mailing List; Ed Griebel Betreff: RE: ApplicationException sample Hi Ed I don't have a delegate layer because I see no point

Re: ApplicationException sample

2005-07-20 Thread Leon Rosenberg
Shalom Rivka, -Ursprüngliche Nachricht- Von: Rivka Shisman [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 20. Juli 2005 18:50 An: Struts Users Mailing List; Ed Griebel Betreff: RE: ApplicationException sample Hi Ed I don't have a delegate layer because I see no point

Re: ApplicationException sample

2005-07-19 Thread Laurie Harper
Rivka Shisman wrote: Can someone please attach a sample of an ApplicationException, BaseException SystemException classes? An example of catching them in an Action class will be very helpful too. Can you explain more what it is you're looking for? If you just want to know how to write and

Re: ApplicationException sample

2005-07-19 Thread erikweber
public class ApplicationException extends Exception { public ApplicationException(String message) { super(message); } } . . . public class SystemException extends Exception { public SystemException(String message) { super(message); } } . . . (typical manager -- facade,

Re: ApplicationException sample

2005-07-19 Thread Glen Mazza
Search on the Struts User ML (http://marc.theaimsgroup.com/?l=struts-userr=1w=2) for those exceptions; also a google on catch ApplicationException (in quotes), etc. may be of help. Glen Rivka Shisman wrote: Can someone please attach a sample of an ApplicationException, BaseException