global-forwards
forward name=error path=/error.jsp /
/global-forwards
in your action you can forward to error in the event that something's
gone pear-shaped.
On 19 Feb 2004, at 01:58, Russ Baker wrote:
I am having a real issue with the way Tiles handles an error page. I
am
setting up
/Error500Page.jsp/location
/error-page
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 3:19 AM
To: Struts Users Mailing List
Subject: Re: Error page problems with Tiles
global-forwards
forward name=error path=/error.jsp /
/global-forwards
Um, you might want to try java.io.IOException instread of
java.lang.IOException... ;-)
--
Martin Cooper
Song Qiu [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I use error-page to do global error handling. It works perfectly for
ServletException. I can see the eror page displayed
: Re: error-page does not work with IOException?
Um, you might want to try java.io.IOException instread of
java.lang.IOException... ;-)
--
Martin Cooper
Song Qiu [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I use error-page to do global error handling. It works
'
Subject: RE: error-page does not work with IOException?
It's a typo in the email. But I did use java.io.IOException in the
error-page. It just give me the blank page back.
Thanks.
Song
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Martin Cooper
Sent: Friday, January 30
]
Sent: Friday, January 30, 2004 1:55 PM
To: Struts Users Mailing List
Subject: RE: error-page does not work with IOException?
Why don't you simplify the problem and have it go to an html
page. We had a
problem where a forwarding jsp page had errors, resulting in
a blank page
-Original Message-
From: Song Qiu [mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 4:12 PM
To: 'Struts Users Mailing List'
Subject: RE: error-page does not work with IOException?
No, I can't. The GenericErrorForward.jsp adds some parameters to the
request and forwards the request
-Original Message-
From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 4:21 PM
To: Struts Users Mailing List
Subject: RE: error-page does not work with IOException?
Just as a test, forward to a HTML page.
May be the blank page is because
Use the exception handler provided by Struts and extend it.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 7:17 PM
To: [EMAIL PROTECTED]
Subject: error page
Hi all,
I would like to display an error page if some weird exception
Actually, that's part of the Servlet spec, not even Struts. You could add something
like this to your web.xml:
error-page
error-code500/error-code
location/500.jsp/location
/error-page
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26,
Thanks for your suggestion. But how exactly should I do this?
Madhu Nair [EMAIL PROTECTED]
09/26/2003 03:52 PM
Please respond to
Struts Users Mailing List [EMAIL PROTECTED]
To
Struts Users Mailing List [EMAIL PROTECTED]
cc
Subject
RE: error page
Use the exception handler provided
There's not enough information here to say exactly what is going on. Are you sure
that ERROR page isn't blank? Post the error jsp and the stuts-config mapping.
-Original Message-
From: Steven Banks [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 7:10 AM
To: [EMAIL
My first thought is that if you are testing for null, you will never trap an
error. Form objects are passed as Strings - empty or not. Test for
titleField.length() 0 rather than != null.
Mark
-Original Message-
From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]]
Sent: Monday, January
Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 1:05 PM
To: 'Struts Users Mailing List'
Subject: RE: error page
My first thought is that if you are testing for null, you will never trap an
error. Form objects are passed as Strings - empty or not. Test for
titleField.length
Could you please explain it in a little more detail? I'm stuck!
Regards,
ATTA
- Original Message -
From: Gemes Tibor [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, November 13, 2002 11:31 PM
Subject: Re: Error Page and Struts+Tiles
2002. november
2002. november 14. 22:59 dátummal atta ur-rehman ezt írtad:
Could you please explain it in a little more detail? I'm stuck!
If a tile produces only a table-cell into the layout, the errorpage should do
so as well.
If a layout produces only a part of the whole layout, the errorpage should do
2002. november 14. 03:12 dátummal atta ur-rehman ezt írtad:
Dear all,
It seems that errorPage page directive doesn't work if we have struts and
tiles. Is it so? If yes, how do a get equivalent functionality. I always
get an InvlaidStateException that says that server can't take me to error
Let's see your errorcode in the web.xml.
type and version of container
...these things always help us
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta
-Original Message-
From: Struts
Does anybody knows why that my error page and errorcode specified in my
web.xml does take affect in IE. Works perfectly fine in Netscape.
Hi
This is an Explorer issue. Choose Tools - Internet Options from the IE
menu. Click the 'Advanced' tab. Scroll down a little and uncheck the box
Hello,
It looks like the web server do an error catching on a request basis rather
than on a include basis.
When you use the server general mechanism, via a declaration in web.xml, the
exception is catch by the top level page where the request start. As Tiles insert
mechanism catch any
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;
web-app
...
after session-config
error-page
error-code404/error-code
location/servlet/package.ErrorHandlerServlet?code=404/location
/error-page
before tablib
To: Struts Users Mailing List
Sent: 11/20/2001 1:43 PM
Subject: Re: error-page in web.xml and 404 HTTP error
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;
web-app
...
after session-config
error-page
error
On Tue, 20 Nov 2001, Steve Zhang wrote:
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;
web-app
...
after session-config
error-page
error-code404/error-code
You could declare your error page inside an action mapping in the file
struts-config.xml as follow
actionpath=..
type=...
name=...
scope=request
input=Your_error_page_here
/action
and it will forward to Your_error_page_here
that's a interesting point. any experieence about orion-server?
-Original Message-
From: Ryan Cornia [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 4:49 PM
To: [EMAIL PROTECTED]
Subject: Error-page in web.xml
I'm hoping someone can help me understand this better. In web.xml, I
25 matches
Mail list logo