Hello,
Hoping someone can set me straight on what exactly a
Servlet is. I have a basic website i'm making for work, more of a hobby that anything else. I have log system setup with mysql and PHP utilizing XAMP for now. I have a calendar app in
java that I was using
jdbc:mysql to connect directly to the database. works perfectly. Then it occurred to me all my passwords are floating around in this jar.
So instead I tried java URLConnection posting to a PHP page and reading XMLechos. It will only work once then i get a premature end of file error.
So my question is..
Should I try and learn more about PHP, XML and URLConnection and get that to work or is there a better way?
Should I create another java program as a Servlet and use that?
How is a servlet anymore safe, can someone download my Servlet to get db connection info? (i understand they won't be downloading it to use the "calendar")
Please can someone outline the proper interaction to keep the database secure. Its not sensitive data anyway but i'd like to learn the correct way if i can help it
Thank you!
-Jeremee.
ps I have about a month of programming experience under my belt so be gentle!