Announcement Announcement Module
No announcement yet.
Spring commons validator with velocity views Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring commons validator with velocity views

    have been using commons validator with spring for a few months and I have no complaints. Since spring does not provide any declarative validation features and is unlikely to provide anything any time soon, I am forced to use the commons validator framework which my struts developers cannot do without. Although it is unlikely that I would switch from using JSP to using velocity as my view technology, I wonder how I would continue to use commons validator if I were to switch my views to velocity. Does anyone know if it is possible right now to use commons validator with velocity?

    A few months ago, I got excited when I found out that Spring was coming up with a validation framework. I noticed that it has been pushed back to spring 1.3. It appears that it is not a top priority and it could be because not many users are requestiing this feature in spring. I think it would be a great addition and wish it could be implemented sooner.

  • #2
    Should I be looking at Freemarker instead since it can take advantage of JSP custom tags and therefore might be able to leverage the commons client-side validation custom tag? However, I just read in a thread that when using spring's support for Freemarker, the JSP custom tag integration does not work.


    • #3
      I too am eagerly waiting for the declarative validation support in Spring. Infact instead on investing time in writing lots of Validator classes for syntactic validation, I have decided to defer adding validation in the controllers hoping to add it later once Spring supports declarative validation.