Hi all,

I am using tomcat 4.1.29/Apache 1.3...

My requirement is to prevent a stacktrace from coming in the screen once a
querystring parameter contains only a single '%' character and the same case
is not handled in the JSP code. Presently it is happening and it gives an
"ArrayIndexOutOfBoundsException" in the stacktrace. During this the url
looks some thing like this:
<servername>/online/DE/newissues/firstproductprofile.jsp?ty=%. But when I
put something else in place of '%' it gets handled

I have done the following:

1. in web.xml for the context have added the following:
<error-page>
    <error-code>500</error-code>
    <location>/Error.jsp</location>
  </error-page>

  <error-page>
    <exception-type>java.lang.Exception</exception-type>
    <location>/Error.jsp</location>
  </error-page>

  <error-page>
    <error-code>404</error-code>
    <location>/Error.jsp</location>
  </error-page>

2. in apache httpd.conf I have set the following:

ErrorDocument 500 /online/Error.html
ErrorDocument 404 /online/Error.html
ErrorDocument 403 /online/Error.html


Both the documents exist in their folders.

Now, for '403- forbidden access', '404 - file not found', and for majority
of '500-server error' cases, I am getting the custom error pages. But not
for the case defined above. I removed the web.xml entries fully keeping the
httd.conf entries. Then the 404 is showing the tomcat page (which I do not
want to show).

Could anybody give any clue as to why this is happening.

Thanks in advance.

Regards,
Partha Ranjan Das,
Consultant,
Sonata Software Ltd., Bangalore,
India.
Ph: +91 80 26575800 x-4721.

*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*********************************************************************

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to