Re: Exception Handling in Struts 2.0.11

2009-04-27 Thread NR031
Hi Terry, My struts.xml looks like this : 405 The requested method is unsupported /JSPPages/Exception.jsp /JSPPages/LoginPage.jsp

Re: Exception Handling in Struts 2.0.11

2009-04-27 Thread Lukasz Lenart
2009/4/27 NR031 : >   I am using Struts 2.0.11 and NetBeans 6.1. Is there any way to handle > exception in Struts 2? Just define global result and put entries for given exceptions in struts.xml, like below 405 The requested method is unsupport

Re: Exception Handling in Struts 2.0.11

2009-04-27 Thread Terry Gardner
Can you be a little more clear about your ask? Using the examples in the given URL, are you asking about: 1. How to code exception.jsp? 2. How to code SQLExceptionAction.java? 3. What is on the ValueStack in these examples and an Exception occurs? 4. something else? On Apr 27, 2009, at 4:34 AM

Re: Exception handling in Struts

2005-08-02 Thread Tremal Nailk
2005/8/1, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Doesn't look like you are using it to me . . . ok, I didn't use the errorPage attribute in the @page directive because I'm using tiles and the error page would substitute only the errored tile if an exception is thrown, resulting in a unpleasant e

Re: Exception handling in Struts

2005-08-01 Thread erikweber
Doesn't look like you are using it to me . . . http://www.imagescript.com/atg/articles/jsp_j2ee/error_page_basics.htm Erik -Original Message- From: Tremal Nailk <[EMAIL PROTECTED]> Sent: Aug 1, 2005 12:26 PM To: Struts Users Mailing List Subject: Re: Exception handling in S

Re: Exception handling in Struts

2005-08-01 Thread Tremal Nailk
2005/8/1, Dave Newton <[EMAIL PROTECTED]>: > Probably want to use the web.xml exception stuff, then (error-page > element, maybe?) well, I'm using it (see my original posting), but the exception is not caught, simply ignored. Anyway you are right when you say that the exception should always be ca

Re: Exception handling in Struts

2005-08-01 Thread Dave Newton
Tremal Nailk wrote: 2005/8/1, Joe Germuska <[EMAIL PROTECTED]>: what's I'm doing wrong? Struts can't catch exceptions thrown by the JSP. This is one reason ok, anyway I'm looking for a way to catch all the exception thrown by may app. So throwing a dbexception was just an exa

Re: Exception handling in Struts

2005-08-01 Thread Tremal Nailk
2005/8/1, Joe Germuska <[EMAIL PROTECTED]>: > >what's I'm doing wrong? > > Struts can't catch exceptions thrown by the JSP. This is one reason ok, anyway I'm looking for a way to catch all the exception thrown by may app. So throwing a dbexception was just an example. There is always something t

Re: Exception handling in Struts

2005-08-01 Thread Joe Germuska
what's I'm doing wrong? Struts can't catch exceptions thrown by the JSP. This is one reason (among many) why I would design something like this to do the database work in an action and deliver only data to the JSP. Joe At 4:40 PM +0100 8/1/05, Tremal Nailk wrote: Hello, I'm trying to cap