This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Text Box Validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Text Box Validation" Watch "Text Box Validation" New topic
Author

Text Box Validation

Pranit Sonawane
Ranch Hand

Joined: Jul 29, 2011
Posts: 155

Hi every one I need to know about the code for text box validation like if we have a registration form in which we need to enter desired user name and password also. But what i want is if a user enters a user name which is already taken by another user and its in the database also, the new user should get Username not Available! this message. Can we do that in JSP? Thanks!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60733
    
  65

The display of the HTML to show the message can be handled by a JSP. Everything else would be handled by other Java classes in the web application.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Text Box Validation
 
Similar Threads
how to show contain of text box as a URL
struts2-populating disabled input fields after validation
dynamic row generation in struts ?
use getParameter() to get info. from text box
Popup window for ajax