Client side validation without using Javascript or VB Script

I have a servlet application, this page is an html form. I would like to add client-side code to validate the data. I would like to avoid using java script or any Microsoft or flash technologies. Is this possible using Java technology.

+3
source share
6 answers

You will have a VERY limited option if you don't want to use Javascript (don't know why). You have validation as an attribute of a field (for example, maxlengthin an input field) that are very limited . Client-side validation is always performed along with server-side validation. They complement each other.

+1

Java , HTML-.

... , , , , HTML + JS, .

JavaScript , , HTML ( JS ).

+1
  • Java-

    • .
  • , JS , GWT-, Java, JS .

+1

HTML Servlet :

String uName= request.getParameter("userName");
String pwd= request.getParameter("password");
PrintWriter out= response.getWriter();

if(uName.equals("username") && pwd.equals("password")){

out.println("Valid User");

}

else
out.println("Invalid User");
0

formcheck: - mootools validations.. .

http://mootools.floor.ch/en/demos/formcheck/ 
0

HTML , <input type='text' maxlength=10> - X ; <input type="email"> -not WebKit. .. w3c . , , ..

0

All Articles