, Danny [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, November 18, 2002 5:02 PM
Subject: RE: Howto handle this behavior in Struts+Tiles
There is a page directive call isError=true or something. And there can
only
Be one of this page within the entire apps
Let me know the result :)
-Original Message-
From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 9:20 AM
To: Struts Users Mailing List
Subject: Re: Howto handle this behavior in Struts+Tiles
Hello again, Danny!
I had to abort it abruptly yesterday. Now
PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, November 19, 2002 5:54 PM
Subject: RE: Howto handle this behavior in Struts+Tiles
Let me know the result :)
-Original Message-
From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002
Dear all,
Here is my layout.jsp file:
%@ page errorPage=ErrorPage.jsp %
tiles:insert attribute=menu/
tiles:insert attribute=body/
tiles:insert attribute=footer/
The menu tile is a JSP page that could throw an exception. Now whenever an exception
is thrown on the menu tile I
enterprise.
Hope this would help,
-danny
-Original Message-
From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 9:52 AM
To: struts users mailing list
Subject: Howto handle this behavior in Struts+Tiles
Dear all,
Here is my layout.jsp file:
%@ page errorPage
' [EMAIL PROTECTED]
Cc: Mebed, Waheed [EMAIL PROTECTED]
Sent: Monday, November 18, 2002 10:36 AM
Subject: RE: Howto handle this behavior in Struts+Tiles
Hello,
Usually exception that being thrown by the VIEW(JSP) are rendering related
exception.
This could be tags/Scriptlet that access resource
]]
Sent: Monday, November 18, 2002 10:57 AM
To: Struts Users Mailing List
Subject: Re: Howto handle this behavior in Struts+Tiles
Thanks, Danny, for the detailed response.
We're running Struts 1.0.x. Does it support ExceptionHandler paradigm? If so
could you please point towards some starting
, November 18, 2002 11:15 AM
Subject: RE: Howto handle this behavior in Struts+Tiles
Hello,
1.0 doesn't support declarative exception handling, but it doesn't prevent
you from
Doing so...:) Anyway, what I would do is: 1) Implement an abstract Action
have and
Abstract method execute(...) throw
]
Sent: Monday, November 18, 2002 11:15 AM
Subject: RE: Howto handle this behavior in Struts+Tiles
Hello,
1.0 doesn't support declarative exception handling, but it doesn't
prevent you from Doing so...:) Anyway, what I would do is: 1)
Implement an abstract Action have and
Abstract method
Subject: RE: Howto handle this behavior in Struts+Tiles
You are almost close ... :) Yes my point 3 is that mapping in the web.xml.
But
Instead of going to the JSP, location/ErrorPage.jsp/location, you
would
want
To go to location/errors/catchError.do/location, which map it to a
Action
I thinks so ...
Good luck...:)
--danny
-Original Message-
From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 1:05 PM
To: Struts Users Mailing List
Subject: Re: Howto handle this behavior in Struts+Tiles
okay, let me give it a try and I'll get back to you
Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, November 18, 2002 1:05 PM
Subject: RE: Howto handle this behavior in Struts+Tiles
I thinks so ...
Good luck...:)
--danny
-Original Message-
From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 1:05 PM
]]
Sent: Monday, November 18, 2002 1:22 PM
To: Struts Users Mailing List
Subject: Re: Howto handle this behavior in Struts+Tiles
Hi Danny,
I'm confused already!!!
here is the abstract action class with an abstract execute method
, November 18, 2002 2:05 PM
Subject: RE: Howto handle this behavior in Struts+Tiles
Okay,
If you want to handle where to go next in one place then create the
abstract
class and have
All the exception handling extends from it. All the handler action need
to
do is to do profiling
Of the exception
You got it ... :)
--danny
-Original Message-
From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 2:30 PM
To: Struts Users Mailing List
Subject: Re: Howto handle this behavior in Struts+Tiles
we want to have and execute(...) method in a abstract class so
No problem... I've learn from others the same way...
--danny
-Original Message-
From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 2:37 PM
To: Struts Users Mailing List
Subject: Re: Howto handle this behavior in Struts+Tiles
Thankyou very much, Danny
, 2002 2:37 PM
Subject: RE: Howto handle this behavior in Struts+Tiles
No problem... I've learn from others the same way...
--danny
-Original Message-
From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 2:37 PM
To: Struts Users Mailing List
Subject: Re
PM
To: Struts Users Mailing List
Subject: Re: Howto handle this behavior in Struts+Tiles
well, Danny, here I am. back to square one!
what I have achieved so far is that I've made changes in the web.xml and in
my action so that whenever Action class throws an exception web.xml settings
redirect
: RE: Howto handle this behavior in Struts+Tiles
First of all forwarding is more efficient the redirect.
If exception being throw inside your JPS/Tile, if not cached it will be
wraped by
A JspException, or ServletException I don't remember. And these exception
if
Not declared by JSP to handle
or
not...:)
danny
-Original Message-
From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 4:27 PM
To: Struts Users Mailing List
Subject: Re: Howto handle this behavior in Struts+Tiles
Yes, the JSP page throws ServletException but the application doesn't catch
20 matches
Mail list logo