Hi, i wrote one html file to accept number when i submit it ll go to servlet. The servlet class doestnt handle exception there.
when i enter real value i should get error page which is html.
the error code is written in web.xml.
Am new to this can anyone help me how to resolve.
Here is the code
this has been written after <welcome-file-list> in web.xml
first, do you want to redirect to error page when the exception occured in servlet right? then remove try catch in your servlet.
second, read this
if you get any problem, let us know
posted 7 years ago
Hi, thanks for reply
ya i need to redirect to error page. But without removing try catch block am getting the error page now just by unchecking
the show friendly http error message in tools option. If we want to redirect to error page doing this change is mandatory or what?
I would like to know the reason here.