This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp and mysql  RSS feed

 
killa killah
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does mysql tables have default null values?

When I leave the username and password fields blank,it logs in how do I prevent ths frm happening?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66255
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This seems much more like a JDBC than a JSP question. I've moved this to the JDBC forum.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37382
531
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch!

killa killah wrote:Does mysql tables have default null values?

Yes. Unless you set a column to not null or provide a default, it defaults to not null.

killa killah wrote:When I leave the username and password fields blank,it logs in how do I prevent ths frm happening?

Is your database set up to allow anonymous logins?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!