Announcement Announcement Module
Collapse
No announcement yet.
reject "<",">" with Jakarta Common Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • reject "<",">" with Jakarta Common

    Hi,

    l am looking for a way to reject characters like "<" , ">" ..etc being enter into the input textbox using Jakarta Commons Validator which is supported by spring in the sandbox.

    l wish to write it simply using code below ,

    Code:
    <var>
         <var-name>mask</var-name>
          <var-value>&#91;<|>&#93;</var-value>
    </var>
    look at the package org.springframework.validation.commons.FieldChecks , the method validateMask return true if match , otherwise false . My question is there any way to do it -- if match return false , sometime it is more efficient to do it these way.

    moon
Working...
X