Seems like it should work to me. Do you know your JavaScript is working properly? I might look there. Additionally, I think the Struts In Action book explains this rather well. Maybe you will find that you missed something. You can find Chapter 12 here: http://www.theserverside.com//resources/article.jsp?l=StrutsInAction

[EMAIL PROTECTED] wrote:

Hello,

my date validation doesn't work on client (jsp) side.

I need validate date in "MM/dd/yy" format.
in validation.xml :

<formset>

<form name="financeChartForm">

<field property="startDate"
depends="required,date">
<arg0 key="prompt.startDate"/>
<msg name="required" key="error.startDate.required"/>
</field>

<field property="endDate"
depends="required,date">
<arg0 key="prompt.endDate"/>
<msg name="required" key="error.endDate.required"/>
</field>

<var>
<var-name>datePattern</var-name>
<var-value>MM/dd/yy</var-value>
</var>

</form>

</formset>

------------------------
plugin includes in struts-config.xml and <html:form action="/chart2" onsubmit="return
validateFinanceChartForm(this);">

<html:javascript formName="financeChartForm"
dynamicJavascript="true"
staticJavascript="false"/>
<script language="Javascript1.1" src="jsp/staticJavascript.jsp"></script>

into jsp.

do I missing anything.

Best Regards.
Michael.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to