JSR 303 Bean Validation + Javascript Client-Side Validation

后端 未结 7 1141
感情败类
感情败类 2021-01-30 20:48

What is the best way to perform client-side form validation using Javascript (with minimal code duplication) when using JSR 303 bean validation on the server side? I\'m currentl

7条回答
  •  时光取名叫无心
    2021-01-30 21:17

    I would suggest that you look at Spring JS, which relies heavily on Dojo. A tutorial can be found here.

    Easiest way for yourself to start playing with it is to download Spring Roo, create the petclinic sample application with one of the example-scripts (this takes you 5 minutes) and then play around with how the javascript is integrated. Spring Roo creates an app with the same technology stack that you use (Spring+hibernate+implementation of jsr 303)

提交回复
热议问题