Hi
i have a condition where an URL is manipulated or changed wantedly. i have to catch the error and move to error page. but the error page is never called.
I am using response.sendRedirect("MyURL"); in the jsp page. If the URL is correct its working fine.
If i manipulate the URL and use the command it shows HTTP 404 error in the same page but not calling the error page
here is my code.
one.jsp
---------
<%@ page errorPage="exceptionHandler.jsp" %>
<%
String webBrowserURL="http://URL"
response.sendRedirect(webBrowserURL);
%>
exceptionHandler.jsp
------------------------
<%@ page isErrorPage="true" %>
<% String root = request.getContextPath(); %>
<%
//get the correct url form the database and send it to the page
%>
<jsp:forward page="one.jsp" />
Help me