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.
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.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With