Thanks Niall,
That helped me to resolve those mentioned errors.
But seems like I cannot get validWhen rule working?
It doesn't even generate a JavaScript validation method
"validateValidWhen()"
Following is the code snippet
<field property="postTimerMs" depends="validwhen" page="1">
<arg0 key="postTimerMs field value " resource="false"/>
<var>
<var-name>test</var-name>
<var-value>((mscExm == null) or (*this* != null))
</var-value>
</var>
</field>
Anyone can help?
Thanks in advance.
G
-----Original Message-----
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 11:52 AM
To: Struts Users Mailing List
Subject: Re: Struts 1.2.4 validator is not working
Check out the upgrade notes here...
http://wiki.apache.org/struts/StrutsUpgradeNotes11to124
My guess is you used to have your messages resources configured through
the
web.xml - this was considered deprecated in Struts 1.1 and has been
removed
from Struts 1.2.x
You need to configure them int the struts-config.xml using the
message-resources element
Niall
----- Original Message -----
From: "Yadav, Ganesh" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 17, 2004 5:44 PM
Subject: Struts 1.2.4 validator is not working
Can somebody let me know any workaround for the following error?
Latest struts download version 1.2.4 validator has following error
This error is thrown on following line in JSP.
<html:javascript formName="myForm" page="1" dynamicJavascript="true" />
I am using latest download so that I can use "ValidWhen" functionality.
Am I the only one who is getting this error with the latest download?
java.lang.NullPointerException
at
org.apache.struts.validator.Resources.getMessage(Resources.java:173)
at
org.apache.struts.taglib.html.JavascriptValidatorTag.createDynamicJavasc
ript(JavascriptValidatorTag.java:464)
at
org.apache.struts.taglib.html.JavascriptValidatorTag.renderJavascript(Ja
vascriptValidatorTag.java:373)
at
org.apache.struts.taglib.html.JavascriptValidatorTag.doStartTag(Javascri
ptValidatorTag.java:335)
Thanks
Ganesh
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]