Hello,
I try to use/configure my own error pages for my struts 2 Application
(struts version: 2.3.15.3, Apache Tomcat 6.0).
I configure the two error pages for the status codes 403 (not
authenticted) and 404 (page not avaiable) in the web.xml (see below) and
place the desired pages
Instead of response.sendError() you can try to use a struts http header
result:
http://struts.apache.org/development/2.x/docs/httpheader-result.html
hope that helps
Regards,
Christoph
Hello,
I try to use/configure my own error pages for my struts 2 Application
(struts version
that helps
Regards,
Christoph
Hello,
I try to use/configure my own error pages for my struts 2 Application
(struts version: 2.3.15.3, Apache Tomcat 6.0).
I configure the two error pages for the status codes 403 (not
authenticted) and 404 (page not avaiable) in the web.xml (see below
Hi,
I think that you have to put the follow in the first line of your error
page:
%@ page isErrorPage=true %
2006/10/30, Chetan Pandey [EMAIL PROTECTED]:
Hi All:
I am trying to include an Error Page in my Struts-based Web App.
The following is what I have in my web.xml
Hi All:
I am trying to include an Error Page in my Struts-based Web App.
The following is what I have in my web.xml
error-page
error-code404/error-code
location/errorPage.jsp/location
/error-page
error-page
exception-typejava.lang.Exception/exception-type
Cheers for the suggestion, but that wasn't it :o(
I've noticed though that if the location of the error page is a *.do
file that exists, then it always shows the above error (and fails to
load the page)... If the requested page is a *.jsp then it doesn't
show the error page, however the page
Hi Tim,
One (maybe obvious) question:
Does your tiles-defs.xml definition for public.error have a path to
your jsp?
If not, that could wreak all kinds of error havoc...
Tim Christopher wrote:
Hi,
I'm trying to setup custom error pages using Tomcat but keep on
getting the following error:
[EMAIL
[EMAIL PROTECTED]: Exception
Processing ErrorPage[errorCode=404, location=/errors/404.do]
ClientAbortException: java.net.SocketException: Software caused
connection abort: socket write error
at
org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:331)
sniprest
Hi,
I'm trying to setup custom error pages using Tomcat but keep on
getting the following error:
[EMAIL PROTECTED]: Exception
Processing ErrorPage[errorCode=404, location=/errors/404.do]
ClientAbortException: java.net.SocketException: Software caused
connection abort: socket write error
9 matches
Mail list logo