66.How to enable front-end validation based on the xml in validation.xml

The <html:javascript> tag to allow front-end validation based on the xml in validation.xml.

For  example the code:

<html:javascript  formName=”logonForm”
                         dynamicJavascript=”true”
                         staticJavascript=”true”  />

 generates the client side java script for the form “logonForm” as defined in the  validation.xml file.

The <html:javascript> when added in the jsp file generates the client site validation script.

Following tag displays all the errors:
<html:errors/>

Advertisements

One Response

  1. […] the client site validation script.Following tag displays all the errors: <html:errors/> Add comment September 9th, […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: