Topic
  • No replies
SP123
SP123
1 Post

Pinned topic Issue while

‏2012-06-20T07:08:17Z |
Hi All,

I'm having issue while impementing the customized error page for 404 error.

Req: If user change the value of the url in the address bar to point to some non-existing jsp
page and click Enter. Please NOTE user is changing the URL with .jsp, not editing the .do

I tried multiple option to handle 404 error.

First, I updated the web.xml with the following tag. But due to IE limitation, it is not redirecting to customized error page.

<error-page>
<exception-type>404</exception-type>
<location>/404error.html</location>
</error-page>

Secondly, I tried filter also.. with no success. Below filter handle only the request with *.do. So if I edit the request as www.xyz.com/aaa.jsp from the original request www.aaa.jsp/Useraction.do, the filter does not handle this request as this is a jsp page.

<filter>
<filter-name>APPFilter</filter-name>
<filter-class>com.abc.web.authorize.APPFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>APPFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>

Please provide your suggestion.

Thanks