struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Veena B N <Veen...@PLANETASIA.COM>
Subject RE: Javascript validation for struts form field elements
Date Thu, 31 Jul 2003 11:58:05 GMT
Thanks daniel,
I am using the same. but due to my property tag having a dot(.) in b/n even
the validations in validation.xml and validator-rules.xml are not gng
through

Veena

-----Original Message-----
From: Suzette Daniel [mailto:sdaniel@waca.com]
Sent: Thursday, July 31, 2003 5:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Javascript validation for struts form field elements


Use struts validation, don't give the form it's own name this is done in the
struts config file. See Struts in Action chapter 12
(http://www.manning.com/husted/chap12.pdf).

Suzette H. Daniel

-----Original Message-----
From: Veena B N [mailto:VeenaBN@PLANETASIA.COM] 
Sent: Thursday, July 31, 2003 7:13 AM
To: 'struts-user@jakarta.apache.org'
Subject: Javascript validation for struts form field elements


Hi

I am using struts form for jsp pages. I have a actionForm which initialises
a value object(which has getter and setter methods). So my form field
elements are specified as below in my jsp page--

<html:form action="createItemdata" method="GET" name="inqform"
type="com.xyz.abc.forms.oma.InquiryForm" onsubmit="return
validateInqform(inqform)" > <html:select property="inqVO.productDiv"
styleClass="SELECTMAND" tabindex="2">
  <html:option value="">-- Please Select --</html:option>

  </html:select>
</html:form>

Now if I want to do javascript(client end) validation, the form field
elements are not recognised since property is converted to name while
delivering the html page and the form field element name cannot contain
'.'(a dot) within the name for js validation.

Now how else can I access the property of the element without a dot for
client side validation. Can anyone please help


Thanks
Veena


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message