• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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

 
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

 
author & internet detective
Marshal
Posts: 38667
677
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!