In the following code in text tag I want to do <form:reset/> in the onblur event. Is it possible ? <form:text property="username"/> see the following example code from apche.
<%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts.tld" prefix="struts" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %> <html> <head> <title>Sign in, Please!</title> <form:base/> </head> <body> <struts:errors/> <form:form action="logon.do" focus="username"> <table border="0" width="100%"> <tr> <th align="right"> Username: </th> <td align="left"> <form:text property="username"/> </td> </tr> <tr> <th align="right"> Password: </th> <td align="left"> <form:password property="password"/> </td> </tr> <tr> <td align="right"> <form:submit property="submit" value="Submit"/> </td> <td align="left"> <form:reset/> </td> </tr> </table> </form:form> </body> </html> -----Original Message----- From: Nail, Evan Burke [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 4:11 PM To: Struts Users Mailing List Subject: RE: newbie question: HTML Taglib Lets say you have a script as follows <script> function testme(){ alert("you tested me"); } </script> then your html tag would look like this <html:text property="action" size="16" maxlength="16" onblur="return testme();"/> Hope this helps. > -----Original Message----- > From: "Boyalla, Raveendra" <[EMAIL PROTECTED]>@ENRON > Sent: Friday, February 22, 2002 2:57 PM > To: 'Struts Users Mailing List' > Subject: RE: newbie question: HTML Taglib > > Hi, > > Please tell me, How to use onBlur event for text Tag > > <form:text property="username"/> > > > Thank you > Raveendra > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > ********************************************************************** This e-mail is the property of Enron Corp. and/or its relevant affiliate and may contain confidential and privileged material for the sole use of the intended recipient (s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender or reply to Enron Corp. at [EMAIL PROTECTED] and delete all copies of the message. This e-mail (and any attachments hereto) are not intended to be an offer (or an acceptance) and do not create or evidence a binding and enforceable contract between Enron Corp. (or any of its affiliates) and the intended recipient or any other party, and may not be relied on by anyone as the basis of a contract by estoppel or otherwise. Thank you. ********************************************************************** -- 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]>