Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I get my HTML/JSP registration page to connect to my database?  RSS feed

 
Jonathan Fugeen
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm creating a registration page for my web project and I need it to connect to a database. I'm not sure how to get it running. I've researched it, however, I can not seem to figure it out yet. I'm having great trouble and I'm trying to find a solution before tomorrow's deadline.

Also, once this is figured out, I'm going to have trouble getting it to connect with a login page that I need as well. I'm unsure of what I'm doing and I need some direction please.

So far, this is what I have tried.

Registration.html




Answers.jsp

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37051
507
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, you want to put the Java code in a Java class or servlet rather than in a JSP. Putting code in JSPs is *so* 1900s :).

For actually connecting to the database, you'll need JDBC. Oracle has a good tutorial
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!