If I run this code: http://www.danny92.pastebin.com/m1f84b972
You will see that my Database connection connects then disconnects after actionPerformed…. why? 🙁
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I wouldn’t recommend that an applet connect directly to a database. This exposes the database directly on the network – not a good practice.
A better idea might be to put a servlet in between the applet and the database. This will have several beneficial effects: