if i entered an Logine name , which all ready in the data base.
Java code inside JSP, was discredited 10 Years back. The backend also, as to do validation, before inserting into database and return back the error message, this is for the case if user doesn't use the check Availablity link, and just clicks Submit.
In this tutorial, we show you how to use Spring’s form tag “input” to render a HTML textbox to store the “user Name“. Simple Form Controller; import com.mkyong.customer.model. Customer; public class Text Box Controller extends Simple Form Controller Create a form validator class and use the Validation Utils class to make sure the “user Name” is not empty, Otherwise, get the “Name” message from the corresponds resource bundle (properties file). Validation Utils; import org.springframework.validation.
Additionally, add an empty check validator to make sure the textbox value is not empty. package com.mkyong.customer.validator; import org.springframework.validation.
Here is the HTML code to create text boxes dynamically.
It works properly in IE but not in fire fox and chrome. And also how to validate the text boxes created dynamically.