当前位置: 首页 > 工具软件 > Validation > 使用案例 >

AJAX Validation

充星腾
2023-12-01

2.0.x releases of Struts 2 use DWR for AJAX validation. This documentation refers to version 2.1.

Struts provides client side validation

(using JavaScript) for a few validators. Using AJAX validation, all validators available to the application on the server side can be used without forcing the page to reload, just to show validation errors. AJAX validation has a server side, which is in included the Struts core jar (an interceptor and some utility JavaScript files), and a client side, which is included in the Dojo plugin.

To use AJAX validation out of the box, install the Dojo plugin. An example is provided on how to use AJAX validation with Prototype, in this case the Dojo plugin is not required.


****  网址:http://struts.apache.org/docs/ajax-validation.html  ****

 类似资料:

相关阅读

相关文章

相关问答