Loading
Struts Validation JavaScript

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  Struct Validation thru JavaScript ?


Ans)

<plug-in className=”org.apache.struts.validator.ValidatorPlugIn”>
    <set-property property=”pathnames”
     value=”/WEB-INF/validator-rules.xml,
            /WEB-INF/validation.xml”/>
  </plug-in>

validation.xml:
<form-validation>
  <formset>
    <form name=”logonForm”>
      <field property=”username”
              depends=”minlength,...”>
        <arg0 key=”prompt.username”/>
        <arg1 key=”${var:minlength}”
             name=”minlength”
         resource=”false”/>
        <var><var-name>minlength</var-name>
          <var-value>3</var-value></var>
      </field>
    </form>
  </formset>
</form-validation>



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

Struts Validation JavaScript


Struts Validation JavaScript

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free