This has nothing to do with Struts and everything to do with how you are connecting to your database. Can you connect with SQLPlus? Can you connect with plain
JDBC? Are you using your container's connection pool? If so, does it have a "test connection" function you can use?