struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shyam A <>
Subject [OT] Handling database connection exceptions
Date Mon, 17 Nov 2003 22:15:52 GMT

I have a Database servlet configured in web.xml, which
intialises a connection pool on Server startup.
However, if the data source is unavailable, I get a
"Null Pointer" exception on my JSPs, which is
propagated from my Data Access class. I'm not able to
redirect the user to the "error" page when this
exception occurs.
Is there any way to gracefully handle this situation
and redirect the user to the standard "error" page
when such an exception occurs?

Any help/pointers will be greatly appreciated.


Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message