Using global-exceptions in modules

2004-03-09 Thread Bruno Moreno
Hi all, I'm using modules in my struts application and I want to have some general exceptions handlers that will be used by all modules. When I've put this information im my default struts-config.xml, the exception threw by my sub-module was not catched. When I've put this

Exceptions

2004-02-16 Thread Jitender Kumar C
My application framework doesnt allow me to use message resource files. My Business logic has customized exceptions that contain user messages. Can anyone help me how to proceed without using html:errors (to display on the view) Is there any other alternative to handle exceptions apart from our

Global-exceptions

2003-12-19 Thread Peter Sloots
Hi all I'm a bad coder so sometimes I get nullpointer exceptions thrown back from an action So I declared a global-exception in my struts-config. Problem is that I'm losing the message that comes with the exception. Is there a way to get the complete message? In an action

Re: [OT] Handling SQL Exceptions - Best Practices

2003-12-15 Thread Mike Duffy
ive "Best Practices" for handling SQL > exceptions > in > a web application. > > I would like to gain from the experience of users on this list. > > For relatively simple web applications do you think it is acceptable to simply wrap > SQL > exceptions > as Runtime

[OT] Handling SQL Exceptions - Best Practices

2003-12-15 Thread Mike Duffy
I am having a difficult time finding a definitive "Best Practices" for handling SQL exceptions in a web application. I would like to gain from the experience of users on this list. For relatively simple web applications do you think it is acceptable to simply wrap SQL exceptions

RE: [OT] Handling database connection exceptions

2003-11-17 Thread Shyam A
003 4:07 PM > To: 'Struts Users Mailing List' > Subject: [OT] Handling database connection > exceptions > > > Shyam, > This problem is not happing in your JSP. According > to your stack trace, it > happens in > obs.business.UserLogin.checkLogin(UserLogin.java:19

RE: [OT] Handling database connection exceptions

2003-11-17 Thread Yee, Richard K,,DMDCWEST
er 17, 2003 4:07 PM To: 'Struts Users Mailing List' Subject: [OT] Handling database connection exceptions Shyam, This problem is not happing in your JSP. According to your stack trace, it happens in obs.business.UserLogin.checkLogin(UserLogin.java:192) which is being called in your Logi

Re: [OT] Handling database connection exceptions

2003-11-17 Thread Vic Cekvenich
Jim, action's execute throws exception; this exposes the container to deceleertively do this, if you declare an error page in web.xml. .V Jimmy Emmanual wrote: Why don't you throw the exception from the Data Access class and catch it in DispatchAction and if there is an exception then forward to

[OT] Handling database connection exceptions

2003-11-17 Thread Yee, Richard K,,DMDCWEST
Message- From: Shyam A [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 3:53 PM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: RE: [OT] Handling database connection exceptions Richard, Thanks for your mail. I am pretty sure I don't access the database in my JSP

RE: [OT] Handling database connection exceptions

2003-11-17 Thread Shyam A
Richard, Thanks for your mail. I am pretty sure I don't access the database in my JSP's. I also use the "errorPage" attribute for all my JSP's, however, it does not handle "Null Pointer" exceptions that occur due to problems with database connection. Give

RE: [OT] Handling database connection exceptions

2003-11-17 Thread Jimmy Emmanual
2003 3:22 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Handling database connection exceptions Shyam, Where in your JSP does the NullPointerException occur? Is it in a method call in a scriptlet? If so, your JSP is still indirectly accessing the database. What Wendy suggested w

RE: [OT] Handling database connection exceptions

2003-11-17 Thread Hubert Rabago
> understood where I'm coming from! As I said, the > database connection is accessed from a Data Access > class (read model), which is called from my > DispatchAction class. Since the exception is not > caught in my DispatchAction class (the methods throw Since the connection is being accessed fro

RE: [OT] Handling database connection exceptions

2003-11-17 Thread Yee, Richard K,,DMDCWEST
TED] ...> tag? -Richard -Original Message- From: Shyam A [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 3:10 PM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: RE: [OT] Handling database connection exceptions Wendy, Thanks for your mail. I don't know if you f

RE: [OT] Handling database connection exceptions

2003-11-17 Thread Shyam A
Wendy, Thanks for your mail. I don't know if you fully understood where I'm coming from! As I said, the database connection is accessed from a Data Access class (read model), which is called from my DispatchAction class. Since the exception is not caught in my DispatchAction class (the methods thr

RE: [OT] Handling database connection exceptions

2003-11-17 Thread Wendy Smoak
> I have a Database servlet configured in web.xml, which > intialises a connection pool on Server startup. > However, if the data source is unavailable, I get a > "Null Pointer" exception on my JSPs, which is > propagated from my Data Access class. IMO, the problem is that you're accessing the dat

[OT] Handling database connection exceptions

2003-11-17 Thread Shyam A
Hi, I have a Database servlet configured in web.xml, which intialises a connection pool on Server startup. However, if the data source is unavailable, I get a "Null Pointer" exception on my JSPs, which is propagated from my Data Access class. I'm not able to redirect the user to the "error" page w

Re: returning errors or exceptions

2003-10-20 Thread Craig R. McClanahan
ve value) or error number (negative value). The delegate passes the error value on to the action, which creates the ActionMessage. My co-workers are of the opinion that the façade should return record ids or exceptions, and that the delegate should capture and translate these exceptions into error

returning errors or exceptions

2003-10-20 Thread Wiebe de Jong
r number (negative value). The delegate passes the error value on to the action, which creates the ActionMessage. My co-workers are of the opinion that the façade should return record ids or exceptions, and that the delegate should capture and translate these exceptions into error values, which are

Re: Handling Exceptions in ActionForm

2003-10-03 Thread Michael Ruppin
At your own risk, manipulate the ActionErrors and ActionMessages collections any way you like. They're in the request scope and named according to Globals.ERROR_KEY and Globals.MESSAGE_KEY. m --- Shane Mingins <[EMAIL PROTECTED]> wrote: > Hi > > I have a Swing app where the SwingView implemen

RE: Handling Exceptions in ActionForm

2003-10-02 Thread Karr, David
> -Original Message- > From: Shane Mingins [mailto:[EMAIL PROTECTED] > > Using Struts, if I have an ActionForm implement the view > interface, how > would it create an ActionError or ActionMessage? It seems > that from an > ActionForm the validate() method can do it, and an Action can

Handling Exceptions in ActionForm

2003-10-02 Thread Shane Mingins
Hi I have a Swing app where the SwingView implements the view interface and has a method duplicateException(String s). In the SwingView it is implemented as public void duplicateException(String duplicateName) { JOptionPane.showMessageDialog(this, "That would result in a duplicate Channel",

RE: Exceptions in RequestProcessor.processPreprocess()

2003-09-04 Thread Andrew Hill
ssage- From: Mike Whittaker [mailto:[EMAIL PROTECTED] Sent: Wednesday, 3 September 2003 18:56 To: Struts List Subject: Exceptions in RequestProcessor.processPreprocess() This method cannot throw an Exception or specifically not even a ServletException. (Why?) I want exceptions thrown he

Exceptions in RequestProcessor.processPreprocess()

2003-09-04 Thread Mike Whittaker
This method cannot throw an Exception or specifically not even a ServletException. (Why?) I want exceptions thrown here to propagate to my standard error handling & jsp page. How can I do that? Do I use processException()? If so how does this work? -- Mi

RE: Handling Exceptions

2003-09-01 Thread Navjot Singh
For ServletException, configure the error page in web.xml file. it will work. navjot |-Original Message- |From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED] |Sent: Sunday, August 31, 2003 5:12 PM |To: [EMAIL PROTECTED] |Subject: Handling Exceptions | | |Hi, | |In struts-config, I have

Handling Exceptions

2003-08-31 Thread Mohd Amin Mohd Din
Hi, In struts-config, I have defined few global-exceptions such as these I also have created an error page, error.jsp with <%@ page isErrorPage="true" %> and at the top of the jsp template for all the pages a <%@ page e

Re: Handling Exceptions

2003-08-31 Thread Yann Cébron
> However, when a > ServletException occurs, it does not go to the path defined in > struts-config.xml. Somehow, the error is still showing in the > application page and not in any one of the error pages defined. My guess is, the ServletException is happening someplace where Struts' ExceptionHandl

RE: how to handle unknown exceptions/errors

2003-08-27 Thread Brian McSweeney
Hi Dave, That's all I wanted to know. :-) thanks, Brian -Original Message- From: David Tobey [mailto:[EMAIL PROTECTED] Sent: 27 August 2003 15:56 To: Brian McSweeney; 'Struts Users Mailing List' Subject: RE: how to handle unknown exceptions/errors Brian: The below

RE: how to handle unknown exceptions/errors

2003-08-27 Thread David Tobey
Brian: The below code is exactly how I do and it works peachy for me. You're just telling Struts to handle any exceptions thrown from an Action by forwarding the request to /appError.jsp, and using the system.error message for the page. Good way to handle generic errors that aren

RE: how to handle unknown exceptions/errors

2003-08-27 Thread Brian McSweeney
I dug a bit deeper into this and found that in struts-1.1 there's a global-exceptions facility in struts-config.xml Where you can declaratively handle exceptions for example: But I'm still a bit confused. Would people recommend using this? How do you folks handle system

how to handle unknown exceptions/errors

2003-08-26 Thread Brian McSweeney
Hi all, Is there a standard way to handle all unknown exceptions in Struts? For example in my Action classes I normally Catch specific exceptions and forward to specific error pages. But for all other exceptions should I just forward to a global Errors page? Eg: In my struts action

Exceptions from a tile

2003-07-17 Thread Peter Smith
Hi all, I am working on exception handling for my application. I have an ErrorsAction that all exceptions that are thrown should be sent to. This action logs the problem and then forwards to an error page specific to that problem. This works great for all my actions, but I am having a problem

how to catch struts taglib exceptions

2003-07-16 Thread White, Joshua A (HTSC, CASD)
I have set up a global error handler in my web xml file which should capture ServletExceptions. When a struts tag throws an exception, it seems to be ignored. The following output appear on the page: [ServletException in:/WEB-INF/jsp/formLogin.jsp] Cannot find message resources under key org.apa

Re: exceptions during load testing

2003-06-19 Thread Louis Leung
Oh, forgot to post the actual question. Did anyone experienced this before when they are doing load testing with their application ? Louis Leung wrote: > Hi all, > > I did some load testing with my struts application (with tomcat) with > around 40 simulated concurrent users. The following excep

exceptions during load testing

2003-06-19 Thread Louis Leung
Hi all, I did some load testing with my struts application (with tomcat) with around 40 simulated concurrent users. The following exception occurs in the tomcat log for the app. When there is only one or a few users, this exception doesn't pop up. 2003-06-19 14:34:38 StandardWrapperValve[action

Re: Handling Exceptions

2003-06-18 Thread Alen Ribic
AIL PROTECTED]> Sent: Thursday, June 19, 2003 7:52 AM Subject: Handling Exceptions > I have been using Struts as the MVC framework and Sitemesh as templates. > It is working smoothly. Only problem is I want to forward the page to an > error page whenever there is an exception. > >

Handling Exceptions

2003-06-18 Thread Syed Kazim Hussain
I have been using Struts as the MVC framework and Sitemesh as templates. It is working smoothly. Only problem is I want to forward the page to an error page whenever there is an exception. So in Tomcat, I have specified the option for forwarding the request to ErrorPage.jsp whenever we encounter

NotSerializableException exceptions on restart

2003-06-16 Thread Brian Lee
When my web app (wls7) reloads a struts app it has a couple of java.io.NotSerializableException exceptions in the log file for the following objects: org.apache.struts.config.impl.DefaultModuleConfigFactory org.apache.struts.action.RequestProcessor org.apache.struts.validator.ValidatorPlugIn

RE: Newbie question: how does MyAction class handle Exceptions?

2003-05-27 Thread Bailey, Shane C.
ction class handle Exceptions? 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? T

Re: Newbie question: how does MyAction class handle Exceptions?

2003-05-27 Thread Erik Price
Leon wrote: 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? Put an informati

Re: Newbie question: how does MyAction class handle Exceptions?

2003-05-27 Thread Leon
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 exceptio

RE: Newbie question: how does MyAction class handle Exceptions?

2003-05-27 Thread Mike Jasnowski
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

Newbie question: how does MyAction class handle Exceptions?

2003-05-27 Thread Leon
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 shoul

Re: Where to catch/throw Exceptions in Struts Tiered Architecture

2003-04-05 Thread Navjot Singh
ts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, April 03, 2003 5:02 PM Subject: RE: Where to catch/throw Exceptions in Struts Tiered Architecture > Generally, returning null when it should be an error is considered bad > practice. (If null is a valid return value of cour

RE: Where to catch/throw Exceptions in Struts Tiered Architecture

2003-04-03 Thread David Graham
m: "Erica Leung" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: RE: Where to catch/throw Exceptions in Struts Tiered Architecture Date: Thu, 3 Apr 2003 11:37:58 -08

RE: Where to catch/throw Exceptions in Struts Tiered Architecture

2003-04-03 Thread Erica Leung
Is there any plug I can set up the exception's message, so I can know at least which tag throws an exception? -Erica -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 11:21 AM To: [EMAIL PROTECTED] Subject: RE: Where to catch/throw Excep

RE: Where to catch/throw Exceptions in Struts Tiered Architecture

2003-04-03 Thread David Graham
I think the "null" is generated because the exception's message String was set to null. It's helped me to print out the various scopes' attributes at the bottom of the page because the exceptions show up in there. David From: "Erica Leung" <[EMAIL PROTE

RE: Where to catch/throw Exceptions in Struts Tiered Architecture

2003-04-03 Thread Erica Leung
Since you guys are having a good discussion on the exceptions handling in Struts, I would like to ask a lower level question on this topic. On my JSP I always get a "null" exception something like "[Exception on \myPage.jsp: null]". At the beginning this exception was very

Re: Where to catch/throw Exceptions in Struts Tiered Architecture

2003-04-03 Thread Navjot Singh
rsday, April 03, 2003 5:02 PM Subject: RE: Where to catch/throw Exceptions in Struts Tiered Architecture | Generally, returning null when it should be an error is considered bad | practice. (If null is a valid return value of course thats a different | matter). | In this case you should throw an

RE: Where to catch/throw Exceptions in Struts Tiered Architecture

2003-04-03 Thread Andrew Hill
class to have to know about low level details like specific sql exceptions though, so instead of just letting the sql exception propogate upwards, you would catch it and throw a different more abstract exception (probably one you create yourself) up to the caller - the caller shouldnt have to know the

Re: Where to catch/throw Exceptions in Struts Tiered Architecture

2003-04-03 Thread Navjot Singh
thanks gareth, i got the point. thanks to Ted (Tip 15) and Andrew as well. -navjot - Original Message - From: "Gareth Andrew" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, April 03, 2003 4:09 PM Subject: Re: Wh

Re: Where to catch/throw Exceptions in Struts Tiered Architecture

2003-04-03 Thread Navjot Singh
I still need to be convinced about throwing so many exceptions in chain Can't the stuff be handled in a simple way -- SAY a. when you get SQLException, catch and return NULL b. Calling Class __ifs__ for NULL instead of __catching__ and transfer the control accordingly. Is there something

Re: Where to catch/throw Exceptions in Struts Tiered Architecture

2003-04-03 Thread Gareth Andrew
IMO, catch the database exception in user, then throw a new (wrapped) exception, catch it in UserAction and throw a new exception, and use struts decalritive exception handling features to handle it. This avoids undue coupling between UserAction, User and Database. Gareth. Navjot Singh wrote:

RE: Where to catch/throw Exceptions in Struts Tiered Architecture

2003-04-03 Thread Andrew Hill
I use nested exceptions, and virtually all my methods (and thus layers) catch and wrap and throw... Makes for some impressively long stacktraces - and is marvellous for debugging! :-) -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Thursday, 3 April 2003 18:05 To

Where to catch/throw Exceptions in Struts Tiered Architecture

2003-04-03 Thread Navjot Singh
Hi, Take a simple case. Action Y UserAction -> User -> Database | V user.jsp Say, Database throws exception. What is best way to handle exception? 1. Catch in User class and return NULL / some ErrorObject to UserAction and let UserAction decide how to handle it? 2. Let Us

Re: Declarative exceptions design question...

2003-03-25 Thread David Graham
Each layer should throw Exceptions appropriate to that layer and allow the calling layer transform them. For example, your EJB can throw a RemoteException but that should never make it past the layer calling the EJB. The calling layer should wrap it in an appropriate Exception. David From

Declarative exceptions design question...

2003-03-25 Thread Mick . Knutson
Declarative exceptions design question... I am using EJB's, Entity with Session Facades, then a BusinessDelegate on top of that, then DispatchActions for this APP. As I understand, I can create simple Exception classes like "LoginFailed.class" and when that error is thrown, I

Re: Trap listener exceptions

2003-03-20 Thread David Graham
I'm well aware of this debate and Bruce Eckel's opinion. Throwing a RuntimeException in this case may be a viable solution but I strongly disagree with the radical stance that all exceptions should be unchecked just so we don't have to bother catching them. It's interesti

Re: Trap listener exceptions

2003-03-20 Thread Kris Schneider
FWIW, there's plenty of debate in the Java community about what unchecked exceptions are meant for. One link: http://www.mindview.net/Etc/Discussions/CheckedExceptions In this particular case, it probably makes more sense to just explicitly dispatch to an error page if the listener already

Re: Trap listener exceptions

2003-03-20 Thread David Graham
D]> Subject: Re: Trap listener exceptions Date: Thu, 20 Mar 2003 07:43:50 -0500 Although you might be able to throw a custom runtime exception and handle it through the servlet error page mechanism. Quoting David Graham <[EMAIL PROTECTED]>: > You can't. The listener metho

Re: Trap listener exceptions

2003-03-20 Thread Kris Schneider
Although you might be able to throw a custom runtime exception and handle it through the servlet error page mechanism. Quoting David Graham <[EMAIL PROTECTED]>: > You can't. The listener method doesn't define any thrown exceptions so your > > implementation

Re: Trap listener exceptions

2003-03-19 Thread David Graham
You can't. The listener method doesn't define any thrown exceptions so your implementation can't either. David From: Mohan Radhakrishnan <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: 'Struts Users Mailing List&#

Trap listener exceptions

2003-03-19 Thread Mohan Radhakrishnan
Hi What is the best practice to trap exceptions thrown in listeners ? My ServletContextListener might throw custom exceptions which the UI should respond to properly by showing a message. How do you make custom exceptions bubble up from methods like public void

JSP Exceptions not being correctly handled

2003-02-28 Thread Victor Batista
Hello! My web application is redirecting all exceptions to an error page (through web.xml confs). Although, when exceptions occur on JSPs, the application isn't being redirected to the error page. My error occurs on the following situation: If the User's Sessi

Globals Exceptions

2003-02-04 Thread Tinsley, Scott S. (Strategic Technologies)
Can someone explain the decision to not make global-exceptions active for all of the processing in RequestProcessor.process()? Why only on handling the action, processAction()? Scott Tinsley System Administrator Defense Commissary Agency 804-734-8857

Re: Exceptions in DispatchActions

2003-01-15 Thread Rick Reumann
On Wed, 15 Jan 2003 12:27:02 -0800 (PST) "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote: > > > > (Presuming 1.1b3 here) > Thanks! Actually that was the whole problem right there- I was using 1.1b1. Definitely worth upgrading! Thanks again. -- Rick -- To unsubscribe, e-mail:

Re: Exceptions in DispatchActions

2003-01-15 Thread Craig R. McClanahan
t; > Cc: model struts <[EMAIL PROTECTED]> > Subject: Exceptions in DispatchActions > > Sorry to repost this yet another time. If maybe someone can just let > me know if they are successfully using declarative exception handling in > conjunction with DispatchAction methods tha

Exceptions in DispatchActions

2003-01-13 Thread Rick Reumann
mething I need to do differently to configure DispatchAction methods to handle declaritive exceptions? Thanks for the help? -- Rick mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Declared Exceptions and Chained Exceptions

2002-12-27 Thread Matt Raible
Can I use Declarative Exceptions and Chained Exceptions at the same time? I'd love to be a able to specify a list of exceptions in my struts-config.xml, and have those errors stacked on each other. Currently, I'm rendering ChainedExceptions using the following, and would love to do it

RE: global-exceptions parse error

2002-12-12 Thread Manish Shah
Fount it...wrong dtd -Original Message- From: Manish Shah Sent: Wednesday, December 11, 2002 5:24 PM To: [EMAIL PROTECTED] Subject: global-exceptions parse error It must be something really stupid but when is it not. I am trying to use global exceptions but I keep getting this parse

global-exceptions parse error

2002-12-11 Thread Manish Shah
It must be something really stupid but when is it not. I am trying to use global exceptions but I keep getting this parse error. I have attached the struts-config here...please let me know Thanks http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>

RE: [Struts Tip] #15 Use chained exceptions. Design consideration.

2002-11-18 Thread Andrew Hill
22:53 To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: [Struts Tip] #15 Use chained exceptions. Design consideration. > -Original Message- > From: Andrew Hill [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 18, 2002 7:31 AM > To: Struts Users

RE: [Struts Tip] #15 Use chained exceptions. Design consideration.

2002-11-18 Thread Dennis Doubleday
> -Original Message- > From: Andrew Hill [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 18, 2002 7:31 AM > To: Struts Users Mailing List > Subject: RE: [Struts Tip] #15 Use chained exceptions. Design > consideration. > > > . thats horrible. >

RE: [Struts Tip] #15 Use chained exceptions. Design consideration.

2002-11-18 Thread Chappell, Simon P
-- >From: Kris Schneider [mailto:[EMAIL PROTECTED]] >Sent: Monday, November 18, 2002 8:44 AM >To: Struts Users Mailing List; [EMAIL PROTECTED] >Subject: RE: [Struts Tip] #15 Use chained exceptions. Design >consideration. > > >} catch (Exception ignore) {} > >Quoting edga

RE: [Struts Tip] #15 Use chained exceptions. Design consideration.

2002-11-18 Thread Kris Schneider
31 AM > To: 'Struts Users Mailing List' > Subject: RE: [Struts Tip] #15 Use chained exceptions. Design > consideration. > > > . thats horrible. > I use: > > catch(Exception e) > { > ; > } > > > > -- > To unsubscribe, e

RE: [Struts Tip] #15 Use chained exceptions. Design consideration.

2002-11-18 Thread edgar
Isn't this much better } (catch Exception e) {;} Edgar -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 7:31 AM To: 'Struts Users Mailing List' Subject: RE: [Struts Tip] #15 Use chained exceptions. Design consid

RE: [Struts Tip] #15 Use chained exceptions. Design consideration.

2002-11-18 Thread Andrew Hill
, 2002 20:17 To: Struts Users Mailing List Subject: RE: [Struts Tip] #15 Use chained exceptions. Design consideration. Exception handling in Java is neat when we know what we are doing. However junior developers often find themselves with exceptions that they aren't really expecting and don&#x

RE: [Struts Tip] #15 Use chained exceptions. Design consideration.

2002-11-18 Thread Quentin.Cope
Exception handling in Java is neat when we know what we are doing. However junior developers often find themselves with exceptions that they aren't really expecting and don't know what to do with. With no direction from others its all to easy to use System.out and I have even se

RE: [Struts Tip] #15 Use chained exceptions. Design consideration.

2002-11-18 Thread Andrew Hill
use objects developed by a third party that log (often to System.out) exceptions they generate and then dont throw an exception back at my code - just return a null or something equally useless. Its a real pain I can tell you...) Of course components using your object will (should!) probably want

[Struts Tip] #15 Use chained exceptions. Design consideration.

2002-11-18 Thread RODRIGO CARVALHO DOS SANTOS
approach. Rodrigo Santos. Brazil. BCP Telecomunicações. -Mensagem original- De: Ted Husted [mailto:[EMAIL PROTECTED]] Enviada em: domingo, 17 de novembro de 2002 22:47 Para: [EMAIL PROTECTED] Assunto: [Struts Tip] #15 Use chained exceptions Many Java mavens recommend that business

[Struts Tip] #15 Use chained exceptions

2002-11-17 Thread Ted Husted
Many Java mavens recommend that business objects throw their own exceptions. Internally, a component may catching a SQL or IO exception, but what we really need to tell the user is that a data access error occurred. Of course, at the same time, you do not want to sacrifice any detail from the

[Declarative Exceptions] Advice needed.

2002-11-15 Thread Jeff_Mychasiw
Greetings: I am using 1.1b2 I am just starting the process of dealing the exception handling in our project. I am plowing through Ted's and Chuck books and have several questions. We have come up with these requirements: 1 - All exceptions must be logged. ( we are using log4j directly

[OT] Multinested exceptions class

2002-10-07 Thread Frederic Laub
Hi, Sorry for polluting this newsgroup with this Java question on Exception handling, but I didn't succeed to implement the multi-nested exceptions class of chapter 10 of the Jakarta Struts Book Review: http://www.theserverside.com/resources/strutsreview.jsp and I thought I could borrow

Declarative Exceptions: Message resource args in exception key..

2002-09-23 Thread Jeff_Mychasiw
I use these in many of my action declarations. Is there a way to insert an argument like we do in ActionMessage("my.key","arg1") I have searched and re-read Chucks Chapter on this. Is this functionality available? Did I miss something easy? -- To unsubscribe, e-mail:

RE: Struts Declarative Exceptions Questions

2002-09-17 Thread Jason Rosen
Why would you need to access the actual exception within your JSP view? I am not sure what your end goal is, but if you explain your idea further, I could give you a better answer. I think it is bad style to have your JSP (or any view) know explicitly about Java exceptions - use your message

Struts Declarative Exceptions Questions

2002-09-17 Thread Jeff_Mychasiw
I am making use of the Declarative Exceptions at the action level as such.. In this situation, is it possible to gain access to the actual thrown exception within the jsp page? I know this is not the best way to handle things but... Thanks -- To unsubscribe, e-mail: <mailto:[EM

RE: Handling runtime exceptions in Struts?

2002-09-09 Thread Declan O'Shanahan (CAPE)
Hi Juraj, Thanks for that it worked a treat :-) Regards, Declan -Original Message- From: Juraj Lenharcik [mailto:[EMAIL PROTECTED]] Sent: 09 September 2002 13:25 To: 'Struts Users Mailing List' Subject: AW: Handling runtime exceptions in Struts? Hi Declan, there are som

Re: AW: Handling runtime exceptions in Struts?

2002-09-09 Thread Ricardo de Souza Moura
sorry why I am prying, but I have a doubt !!! Can I use declarative Exceptions with Dispatch Actions ? Thanks !!! >From: Juraj Lenharcik <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: 'Struts Users Mailing List' &

AW: Handling runtime exceptions in Struts?

2002-09-09 Thread Juraj Lenharcik
the exceptions in the action servlet and forward to the errorpage. Juraj -Ursprüngliche Nachricht- Von: Declan O'Shanahan (CAPE) [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 9. September 2002 14:19 An: [EMAIL PROTECTED] Betreff: Handling runtime exceptions in Struts? Hi there,

Handling runtime exceptions in Struts?

2002-09-09 Thread Declan O'Shanahan (CAPE)
Hi there, I was wondering if there a way with Struts to catch runtime exceptions by default and have them displayed by an error page? I am trying to handle a Servlet Exception that is thrown because of a missing key in the Application Resources properties file. Regards, Declan O'Sha

RE: Is thare any way to make struts handle Exceptions thrown from ?

2002-08-21 Thread Trieu, Danny
I can re-use This sub-module another application. danny -Original Message- From: Herve Tchepannou [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 1:19 PM To: Struts Users Mailing List Subject: Is thare any way to make struts handle Exceptions thrown from ? Is thare any way to

Is thare any way to make struts handle Exceptions thrown from ?

2002-08-19 Thread Herve Tchepannou
Is thare any way to make struts handle Exceptions thrown from JSP custom tags? My goal the to make my application behave exactly as if the error was thrown from a Action object. thanx

Re: Handling exceptions in Action class

2002-08-13 Thread chuckcavaness
ly suggest, if i want to handle exceptions in the perform > method of > the Action class (like "LogonAction" class), how should I go go about? > I thought of instantiating a ErrorAction Class from the perform method and > pass parameters > which would do the logging in the l

Handling exceptions in Action class

2002-08-13 Thread Vijeth R Naik
Hi all: Can anyone kindly suggest, if i want to handle exceptions in the perform method of the Action class (like "LogonAction" class), how should I go go about? I thought of instantiating a ErrorAction Class from the perform method and pass parameters which would do the logging in th

Handling runtime tag exceptions?

2002-07-17 Thread Greg Hess
the throws the runtime error. The only way I can make it work is by making the exception tag the first tag in the page. Is there another way to handle runtime tag exceptions? Thanks, Greg

Tag Attributes Parse Exceptions

2002-07-10 Thread Jacob Hookom
I have been running into issues when I want to take the request and output a parameter within a tag attribute via <%= request.getParameter("clientId") %> but the compiler throws an exception when this occurs. Can anyone give me some insight as to why this is occurring and a possible work around?

RE: Throwing exceptions in Actions

2002-06-12 Thread Andrew Hill
: Throwing exceptions in Actions testing -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 2:54 PM To: Struts Subject: Throwing exceptions in Actions (Using tomcat here) Anyone know what the story is with the 'friendly' (using the

RE: Throwing exceptions in Actions

2002-06-11 Thread Sudhir
testing -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 2:54 PM To: Struts Subject: Throwing exceptions in Actions (Using tomcat here) Anyone know what the story is with the 'friendly' (using the Micro$oft definition of '

Throwing exceptions in Actions

2002-06-11 Thread Andrew Hill
erTypeDispatchAction] to method save returned an exception Not very helpful really. Not even anything in the logs :-( The exception in question is one (a ServletException with nested exceptions) I myself throw in the code under certain conditions, and I wish to display it in a similar manner t

How to handle exceptions properly ?

2002-03-21 Thread Slimane Zouggari
Hi, I already looked at the JGuru FAQ and other resources but I didn't find any good (and complete information) on the subject. So, if it's already been asked, I'm very sorry and I hope you would point me to the URL where I can find the info. So, what's the best way

RE: Handling exceptions

2002-03-05 Thread Hani Hamandi
akes place, i.e., when we end up in the "catch Throwable" block in validate() or in perform(). Hani. -Original Message- From: Dariusz Wojtas [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 4:06 PM To: Struts Users Mailing List Subject: RE: Handling exceptions OK, that w

  1   2   >