Thanks Arron , It worked. -----Original Message----- From: Arron Bates [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 9:24 AM To: Struts Users Mailing List Subject: Re: JavaScript problem
If you give the submit tag a property value it will change the name to that of the property. It should match a bean property, but it can be a fake one. eg: public void setMyNonSubmitTitledProperty(String temp) {} ...and in the markup.... <html:submit property="myNonSubmitTitledProperty"> <bean:message key="button.submit" /> </html:submit> ...it should render... <input type="submit" name="myNonSubmitTitledProperty" value="Submit"> Arron. Rajesh Gaikwad (EHS) wrote: >Hi everyone, > Yesterday I was trying something like > > <html:form action="/saveCustomer.do"> ><html:select property="creditCheckReq" >onchange='document.forms[0].submit()'> > <html:option value="true">Yes</html:option> > <html:option value="false">No</html:option> > </html:select> > > ..... > <html:submit> > <bean:message key="button.submit"/> > </html:submit> ></html:form> > > >But this didn't worked giving JavaScript error submit is not a function > > >This is because corresponding HTML for submit tag generates ><input type="submit" name="Submit" value="Submit"> > >This name ambiguity causes a problem as a work around , >I have tried to define submit button myself and it works. > >Is there any another way? >Rajesh > > > > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>