<html:file property="theFile" /> <html:text property="url" />
<html:submit value="Upload Logo" onclick=" return button2();"></html:submit> function button2() { var theFile = document.forms[0].elements['theFile'].value; if( theFile == "" && theFile.length = 0) { alert("Please enter the value for the field theFile"); document.forms[0].elements['theFile'].focus(); return false; } Similarly u can write for other two filds return true; } -----Original Message----- From: Gomathi [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 5:37 PM To: Struts Users Mailing List Subject: Re: about javascript no, i have three text fields in my one jsp i want to check these fields if it is empty using java script client side validation <html:text property="title" /> <html:file property="theFile" /> <html:text property="url" /> <html:submit value="Upload Logo" onclick="button2()"></html:submit> in button2() { how to check this empty fields } ----- Original Message ----- From: "Krishna, Hari" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <user@struts.apache.org> Sent: Friday, August 11, 2006 5:10 PM Subject: RE: about javascript >r u going to check for mandatory fields. > > -----Original Message----- > From: Gomathi [mailto:[EMAIL PROTECTED] > Sent: Friday, August 11, 2006 4:45 PM > To: Struts Users Mailing List > Subject: about javascript > > > hai > i am working in struts1.1 > i have threee fields in <html:text> > how to check these empty fields when submitting the submit button using > java script > its very uergent > with kindly regards > gomes > Notice: All email and instant messages (including attachments) sent to > or from Franklin Templeton Investments (FTI) personnel may be retained, > monitored and/or reviewed by FTI and its agents, or authorized > law enforcement personnel, without further notice or consent. > > --------------------------------------------------------------------- > 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] The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]