struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Veena B N <Veen...@PLANETASIA.COM>
Subject Javascript validation for struts form field elements
Date Thu, 31 Jul 2003 11:13:14 GMT

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="" onsubmit="return
validateInqform(inqform)" >
<html:select property="inqVO.productDiv" styleClass="SELECTMAND"
  <html:option value="">-- Please Select --</html:option>


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


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message