How to handle all exceptions in a web java project
Posted
by
Nick Donovan
on Stack Overflow
See other posts from Stack Overflow
or by Nick Donovan
Published on 2014-06-08T15:17:09Z
Indexed on
2014/06/08
15:25 UTC
Read the original article
Hit count: 259
I am doing an web java project about an hotel reservation. I am using, sql, hibernate, java server pages.
I want to know how can I redirect an incoming exception to an error.jsp file . There are a lot of java code , and a lot of jsp file. So I want to rederict every exception that I haven't handle to an error page, is there any way to do it ? An exception can come from everywhere and I can't know and handle them all ( for example an user can write to much data in an textfield, and it will generate me an sql exception for data to long)
Thank you, sorry for my english.
© Stack Overflow or respective owner