• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets and JDBC

 
amit sanghai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi everybody,

Q1) What is the Servlet API used to connect to database?

Q2)We have a web page that is invokuing servlets username and psssword which it checks in the database.Suppose in the second page also we want to verify the same information whether it will connect to the database or it will use previous information?
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Servlets use the general Java API for database access, known as "JDBC". Why not check out the JDBC forum here at The Java Ranch for more information?
2. To pass information between servlets, or between invocations of the same servlet, use the "session". Look up Sessions in your Servlet reference books or web sites.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic