Hi,

Can anyone guide me to pass request paramters to my custom error page.
I have made a jsp which can handle errors(isErrorPage="true") and also
display appropriate messages based on the errorCode passed to it.

I would like to reuse the same page to display custom http errors (404, 500,
etc) instead of making several pages.

I tried the following in my web.xml:
<!-- Error handler pages -->
<error-page>
  <error-code>404</error-code>
    <location>/error.jsp?errorCode=404</location>
</error-page>

But got the following error:
Internal Servlet Error:
java.lang.RuntimeException: ASSERT: ? in requestURI
        at java.lang.Throwable.(Throwable.java:96)
        at java.lang.Exception.(Exception.java:44)
        at java.lang.RuntimeException.(RuntimeException.java:49)
        at
 org.apache.tomcat.request.SimpleMapper1.contextMap(SimpleMapper1.java:252)
 at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:814)
        at
org.apache.tomcat.core.ContextManager.getHandlerForPath(ContextManager.java:1
164) at
org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:1028)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:783
) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpCo
nnectionHandler.java:210) at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:498)

I am using Jakarta Tomcat 3.2.1 with Apache 1.3.19 on on Red Hat 7.1 Linux
box.

Thanks in advance :-)

--
Regards,
Suraj Amin
Sr. Consultant
Auriga Logic
www.aurigalogic.com

/* May the source be with you */

/**
 * Microsoft: Where do you want to go today?
 * Linux: Where do you want to go tomorrow?
 * BSD: Are you guys coming, or what?
 */

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to