This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
If you gt an exception of any type, y is false, an exception message is printed to standard out, and the redirect page will always be displayed. If the driver can't be found, the retry page is shown, if the database can't be found, the retry page is shown, if the table name is wrong.... you get the picture. Remove the try/catch block and see what happens. If an exception is thrown (and that's my guess) you'kll see the default error page with the exception details. Dave
Joined: Aug 17, 2001
hey... outside your try catch block, the value of x & y are indeed going to remain false.... extend your try catch block to include your if statements too..so they will get the value. this should work... MB
No no no, the values of x and y can be changed to true as long as the code works, but I'm not sure we've proved that yet. Extending the try/catch block is the wrong thing to, since it isn't "error handling", it's just "error hiding". It just prints a message and pretends everything is OK. The try/catch block has to go.