java - Validation in struts 2 -


Please solve the following confusions about verification in Straits 2 -

1) Can party and server validate through javascript? 2) Can we do client side and server-side valuations through AJAX?

If possible, which client-side is beneficial for verification and for which server side?

The client-side validation can be done through Javascript. Server side validation is done through validation framework You can validate through AJAX but this is a bit more work.

We have found that client-side verification is left in simple cases, such as missing mandatory fields and invalid characters, compared to the need to be AJAX and / or server side, apart from this, Documentation proved to be useful on client-side verification, so you might want to consider validation in your Javascript framework (Dojo, Wii, Script, JQuery etc.) of choice.


Comments