....wrecking my head! Anybody got any clue as to why it isn't working? When I click the submit button the page displayed only contains the text used in the finally bit. "DisConnecting From Server.... " It doesn't even get this far:
catch (Exception e) { out.println("Bit of a Bummer : " + e.getMessage()); } finally { try { if ( con != null ) { out.println("<BR><BR>"); out.println("DisConnecting From Server.... "); con.close(); } } catch (Exception e) { out.println("Bit of a Bummer Disconnecting : " + e.getMessage()); } } %> </CENTER> </BODY> </HTML> [/CODE] Anybody have any ideas?
Lu Battist
Ranch Hand
Joined: Feb 17, 2003
Posts: 104
posted
0
Sure, I got an idea. Check the if statement, maybe its not true. Try this: if ( ( request.getParameter("submit")).equals("submit") ) { out.println("Debug: inside if, add more debug statements around the query."); ... } else { out.println("Debug: inside else, guess I'd better re-check the request paramenters."); }
Raymond O'Leary
Greenhorn
Joined: Mar 23, 2004
Posts: 24
posted
0
Lu you're a genius, now if you could only tell me why the text in my text area is not goning into the database then I may propose. I just got rid of the if itself by the way. Is this a bad idea? CHEERS!!
minor remark: "You're log was added" isn't propper english. It means "You are log was added" which isn't of much sense. "Your log was added" is what you mean.