I have a project asking me to develop a database along with a website user interface, but I only know how to create the database and how to connect the database using JDBC. What should I learn to achieve connecting a website to the database and do some interactions? Should I use JavaScript, PHP, or embed JDBC code into the HTML code? Please tell me where I should start for this project.
I am using Oracle 10g, I know how to connect database via JDBC, but the part I need help is how to create a website interface instead of a java application interface.
baboon: it seems (to me) that for your prof. to just hand you a project to “develop a web app” — without providing you any kind of basic lecture on how to go about it — is a bit of a steep task. You not only have to learn about servlets and web-containers and WARs, but the MVC-approach most good java-web-frameworks use can present a fairly steep learning-curve the first time you are introduced to them. You may want to check with your prof. to make sure you understand the requirements — usually this sort of project would be the culmination of an entire semester’s worth of lectures, wherein the instructor would have presented you with all of the big tools you’d need to accomplish this task.
Nevertheless, I recommend you develop it using the Spring platform.
Here is a simple “Hello World” tutorial — there may be better ones out there, but I recall having done this one a while back and it seemed to be pretty good. http://maestric.com/doc/java/spring
Note: the Spring framework is a Java development framework that does many things. One of the things that it’s commonly used for is writing a web-app using Java.