Hi,
I think William has mentioned all the points in his code.
To forward to different jsp, all you need to do is to set the
forward = "failure.jsp";
at each catch statement
say
catch (DbEx ex) {
forward = "p1.jsp";
}
catch (AppEx ex) {
forward = "orig.jsp";
}
catch (SysEx ex) {
forward = "globalp.jsp";
}
I understand that you are not using Struts, but Struts does give you many ideas to the solution which I believe you will use in many web app dev.
So, if you have the time, I encourage you to pick up a book and read on it.
Moreover, the struts code is FREE.
It's the idea that you need to understand, whether you will be using struts or not is not important.
Cheers.
Han Ming