Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Client side validation Without Using Javascript Or VB Script

I have a servlet application that page is an html form. I'd like to add some client-side code to validate the data. I'd like to avoid using java script or any Microsoft or flash based technologies. Is it possible with java technology.

like image 360
Asish AP Avatar asked Feb 19 '26 22:02

Asish AP


2 Answers

You will have a VERY limited option when you do not want to use Javascript (not sure why). You have validation as a field attribute (like maxlength on input field ) which are very limited. Client side validation is always done along with Server side validation. They compliment each other.

like image 168
Santosh Avatar answered Feb 21 '26 10:02

Santosh


You could use a Java applet, and render your user input controls using that instead of with an HTML form.

…but that way lies madness, it would be time consuming to build, take significantly longer to load than HTML + JS, and requires a browser plugin.

You really should use JavaScript for this, it is the only widely supported technology that can interact with HTML forms (without using JS as an intermediary).

like image 38
Quentin Avatar answered Feb 21 '26 11:02

Quentin