struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Song Qiu" <song....@tumbleweed.com>
Subject RE: <error-page> does not work with IOException?
Date Sat, 31 Jan 2004 00:25:22 GMT

> -----Original Message-----
> From: Gopalakrishnan, Jayesh [mailto:Jayesh.Gopalakrishnan@schwab.com]
> 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 of errors in the
> GenericErrorForward.jsp...due to IOException.
> Is there a stacktrace being logged anywhere..?
I will try it with static html. Just the fact that it works with
ServletException, not IOException confuses me. The jsp page just does a
forward. It's not excepton specific.

> 
> Also arent you supposed to have the jsp within a <location> 
> element in your
> web.xml?
Yes, you can have jsp within <location> element.

Thanks a lot!

Song

> 
> trying to help.
> -jayash
> 
> 
> -----Original Message-----
> From: Song Qiu [mailto:song.qiu@tumbleweed.com]
> 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 to an Action which executes 
> some logic
> before displaying the real error page. 
> 
> Thanks for your input though.
> 
> Song
> 
> > -----Original Message-----
> > From: Hookom, Jacob [mailto:Jacob.Hookom@redline.mckhboc.com]
> > 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:song.qiu@tumbleweed.com] 
> > Sent: Friday, January 30, 2004 3:43 PM
> > To: 'Struts Users Mailing List'
> > 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:news@sea.gmane.org]On Behalf Of Martin Cooper
> > > Sent: Friday, January 30, 2004 10:05 AM
> > > To: struts-user@jakarta.apache.org
> > > Subject: 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" <song.qiu@tumbleweed.com> wrote in message
> > > 
> > 
> news:7382FCA44E27D411BD4A00508BD68F9507BDAA09@pigeon.tumbleweed.com...
> > > > I use <error-page> to do global error handling. It works 
> > > perfectly for
> > > > ServletException. I can see the eror page displayed 
> > > properly. But for
> > > > IOException, It does not work, I can only see a blank page.
> > > >
> > > > Here is part of my web.xml:
> > > > <error-page>
> > > > <!-- This is to catch any ServletException -->
> > > > <exception-type>javax.servlet.ServletException</exception-type>
> > > > /GenericErrorForward.jsp
> > > > </error-page>
> > > >
> > > > <error-page>
> > > > <!-- This is to catch any IOException -->
> > > > <exception-type>java.lang.IOException</exception-type>
> > > > /GenericErrorForward.jsp
> > > > </error-page>
> > > >
> > > > Thanks.
> > > >
> > > > Song
> > > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > 
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: 
> struts-user-help@jakarta.apache.org
> > > 
> > > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message