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: 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 errorPage="error.jsp" %>. H

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: 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

Re: Handling exceptions in Action class

2002-08-13 Thread chuckcavaness
Take a look at my draft chapter on ExceptionException and see if that sheds any light on the topic. You can download it here: http://www.theserverside.com/resources/strutsreview.jsp It's Chapter 10. You will need to register, but it's free. Chuck > Hi all: > Can anyone kindly suggest, if i wa

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 the log file..(

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

RE: Handling exceptions

2002-03-04 Thread Dariusz Wojtas
OK, that was helpful - now I see it from different perspective. But what if somebody argues that Throwable catches also JVM exceptions, like ThreadDeath or OutOfMemory and similar? Should I care about that or not? If not then why? Dariusz Wojtas At 13:14 02-03-04 -0500, you wrote: >Cat

RE: Handling exceptions

2002-03-04 Thread Hani Hamandi
Original Message- From: Dariusz Wojtas [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 1:01 PM To: [EMAIL PROTECTED] Subject: Handling exceptions Almost every of my action classes has the try/catch block. And I catch different types of exceptions that may be thrown + Throwable

Handling exceptions

2002-03-04 Thread Dariusz Wojtas
Almost every of my action classes has the try/catch block. And I catch different types of exceptions that may be thrown + Throwable at the end } catch ( ... ) { log(...); // add error; } catch (Throwable t) { log(...); // add error I found that in struts example a

Re: RES: handling exceptions

2002-02-22 Thread Ted Husted
"Cakalic, James" wrote: > I can't comment on the nested exceptions of 1.4 as I haven't really looked > at this. But I would venture that my above comments apply there equally. Nested exceptions are really a very good thing, and not hard to do pre-1.4 http://www.javaworld.com/javaworld/jw-08-2001

RE: RES: handling exceptions

2002-01-28 Thread Cakalic, James
doubt that such releases will occur concurrently with Sun's JDK releases -- given the historical track record. Jim > -Original Message- > From: Calvin Yu [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 28, 2002 2:40 PM > To: Struts Users Mailing List > Subject: RE: RES

RE: RES: handling exceptions

2002-01-28 Thread Calvin Yu
At 11:04 AM 1/28/2002 -0500, you wrote: >Aside from functional differences, it is not practical or advisable for >everyone to adopt JDK 1.4 as soon as it hits release. For one thing, Sun >only releases the JDK for Windows and Solaris platforms. What if you are >using Linux? Or AIX? Or HP-UX? Or AS

Re: RES: handling exceptions

2002-01-28 Thread Pete Carapetyan
"Cakalic, James" wrote: > Hmm. Just because it appears in the JDK doesn't mean that it is a "good > thing". > As a user of Struts, imagine > for a moment that JDK 1.5 included an MVC implementation similar to Struts > but with reduced functionality and limited extension capability. Would you >

RE: RES: handling exceptions

2002-01-28 Thread Jonathan Gibbons
EST Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> cc: Subject: RE: RES: handling exceptions Hmm. Just because it appears in the JDK doesn't mean that it is a "good thin

RE: RES: handling exceptions

2002-01-28 Thread Cakalic, James
is a "good thing". Best regards, Jim Cakalic > -Original Message- > From: Jonathan Gibbons [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 28, 2002 7:30 AM > To: Struts Users Mailing List > Subject: Re: RES: handling exceptions > > > > Hi, > > JDK1.4

RE: RES: handling exceptions

2002-01-28 Thread Jonathan Gibbons
ing List'" <[EMAIL PROTECTED]> cc: Subject: RE: RES: handling exceptions That's all very good (and I especially like the inclusion of the RegExp class in 1.4) but when will we have servlet and app containers that can support with 1.4? Mark -Original Message- From: Jon

RE: RES: handling exceptions

2002-01-28 Thread Mark Galbreath
truts Users Mailing List Subject: Re: RES: handling exceptions Hi, JDK1.4 is at final release candidate stage. They include nested exceptions (including all remote exceptions) and a logging framework. Use these, and not any other version (eg log4j), you will be future proofing your CV and

RE: handling exceptions

2002-01-28 Thread Mark Galbreath
How do you differentiate between these exceptions (throws, throw new, catch) in the JavaDocs? Mark -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 7:27 AM To: Struts Users Mailing List Subject: Re: handling exceptions We've develo

Re: RES: handling exceptions

2002-01-28 Thread Chuck Cavaness
That's a good idea. The only issue that I can think of is that you'll be dependent on 1.4, since the logging API isn't available to previous SDKs. Something like log4j is available to 1.1 and above. There's no reason that I can think of why anyone wouldn't use the latest version of the SDK, but

Re: RES: handling exceptions

2002-01-28 Thread Jonathan Gibbons
AIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> cc: Subject: Re: RES: handling exceptions Unfortunately no because I think it contains some really nice features for Struts. This is a commerical product that I'm working on. However, I have received permissio

Re: RES: handling exceptions

2002-01-28 Thread Chuck Cavaness
IL PROTECTED]] >Enviada em: segunda-feira, 28 de janeiro de 2002 10:27 >Para: Struts Users Mailing List >Assunto: Re: handling exceptions > > >We've developed a pretty eloborate exception handling framework on my >current project. We're using EJB on the backen

RES: handling exceptions

2002-01-28 Thread Rubens Gama
Thanks. I want to know if your framework of handling exception will be opensource, like struts. -Mensagem original- De: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Enviada em: segunda-feira, 28 de janeiro de 2002 10:27 Para: Struts Users Mailing List Assunto: Re: handling exceptions

Re: handling exceptions

2002-01-28 Thread Chuck Cavaness
We've developed a pretty eloborate exception handling framework on my current project. We're using EJB on the backend, so we must also deal with remote type exceptions. First we catorgize exceptions into those that the user can recover from and those that they can't. Sort of like fatal and non-

Handling Exceptions with Struts

2002-01-28 Thread Rubens Gama
To debug my Action classes, i use a method call "System.out.println()" or "servlet.log()"... is it a good practice? -- To unsubscribe, e-mail: For additional commands, e-mail:

handling exceptions

2002-01-28 Thread Rubens Gama
Could somebody help me ? I have to many problems with handling exception of the Struts. what do you suggest to handling exception of the deployment applications? -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Handling exceptions thrown from Action.perform in the errorpage?

2001-07-24 Thread Ted Husted
> > > > return mapping.findForward("error") Will forward to the file named "errorpage.jsp" in the root of your Web application. If it doesn't, something else is wrong, like doPerform is not throwing the exception (Try logging it too.), or the page is in the root of your container in

Handling exceptions thrown from Action.perform in the errorpage?

2001-07-24 Thread sbt
Hey there! I have a question for you guys. When an exception is thrown in my Action derivative I want that exception to be handled by the errorpage (<%@ page isErrorPage="true %>). After fooling around with the web.xml file adding entries such as: javax.servlet.ServletException