Posted By:
pat_pat
Posted On:
Monday, January 27, 2003 09:30 PM
i have a register.htm page with couple of fields like: propertycode, propertyName, Address, city, state, country. for validation of these fields i am using Bean called FormValidation.java Once user fills register.htm it will be posted to process.jsp: process.jsp: <%@ page import="java.util.*" %> <%@ page language="java" import="FormValidation"%> <% if (formHandler.validate()) { %> <% } else { %> <% } %> FormValidation.java Bean will validate all the fields entered by the user like
More>>
i have a register.htm page with couple of fields like:
propertycode, propertyName, Address, city, state, country.
for validation of these fields i am using Bean called FormValidation.java
Once user fills register.htm it will be posted to process.jsp:
process.jsp:
<%@ page import="java.util.*" %>
<%@ page language="java" import="FormValidation"%>
<% if (formHandler.validate()) { %>
<% } else { %>
<% } %>
FormValidation.java Bean will validate all the fields entered
by the user like not blank or null length etc., along with it i have
propertycode field to be checked, which is to validate using
database , should be unique propertycode allowed for insert.
so this FormValidation Bean will check whether propertycode is already
entered or not.
if already entered it will display message in retry.jsp
which have the same interface as register.htm only difference is error messages
will be stuffed in it and importing formValidation
retry.jsp:
<%@ page import="java.util.*" %>
<%@ page language="java" import="FormValidation"%>