hi i am new to jsp(apache-tomcat) and i am doing a small project in jsp in that during catch exception i want to redirect some page in jsp and i worte the code like this
try
{
//some code..
}
catch(Exception e)
{
System.out.println("error==>"+e);
response.sendRedirect("Servererror.html");
}
during error or exception i can see the error by using System.out.println() but the page is not redirecting
is there any problem in my code or am i doing anything wrong...please help..