Can any one tell me:
How to catch exception from
Servlet in error.jsp page in order to show an error message to user if there is something wrong when execute the Servlet.
In Servlet I use:
if(something wrong){
throw new Exception("Something wrong");
}
The error message always not show in error.jsp page
instead it show in a new page with system generate error
message, which is not user friendly.
How can catch it using error.jsp?
Thank you in advance!!
Long