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 information in
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.
global-exceptions
exception key=errors.nullpointer
type=java.lang.NullPointerException
path=page.error/
/global-exceptions
I have written my own RequestProcessor class (MyRequestProcessor.java) by
extending the STRUTS provided RequesrProcessor class. I have overridden the
processPreprocess() method as below. Also I have defined the
java.lang.NullPointerException in the global-exceptions of
struts-config.xml as shown
Afaik, the global-exceptions only traps exceptions thrown up from your
actions (not from the RP or the JSPs)
(I could be wrong about this though!)
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, 5 September 2003 16:50
To: [EMAIL PROTECTED]
Subject
:
Subject: RE: Probelm with
global-exceptions routing.
09/05/2003 02:27 PM
not sure if struts handles exceptions thrown from RequestProcessor.
|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]
|Sent: Friday, September 05, 2003 2:20 PM
|To: [EMAIL PROTECTED]
|Subject: Probelm with global-exceptions routing.
|
|
|I have written my own
with global-exceptions routing.
Basically what I wanted to do in the processPreprocess() method of
MyRequestProcessor class was Check if there were any User related
credentials in the session, if yes let the process continute. If not then
throw the Logon page. Is there any otherway I can achieve
Look into using a Filter for this.
robert
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 5:47 AM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: RE: Probelm with global-exceptions routing.
Basically
PROTECTED]
Sent: Friday, September 05, 2003 5:47 AM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: RE: Probelm with global-exceptions routing.
Basically what I wanted to do in the processPreprocess() method of
MyRequestProcessor class was Check if there were any User related
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
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
?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE struts-config PUBLIC -//Apache
11 matches
Mail list logo