日期:2014-05-17 浏览次数:20757 次
<body> <html:form action="/login" focus="password"> User Name: <html:text property="userName"/> <br>Password: <html:text property="password"/> <br><html:submit/> </html:form> </body>
<body> <form name="loginForm" method="post" action="/myStrutsApp6/login.do"> User Name: <input type="text" name="userName" value=""> <br>Password: <input type="text" name="password" value=""> <br><input type="submit" value="Submit"> </form> <script language="JavaScript" type="text/javascript"> <!-- if (document.forms["loginForm"].elements[ "password"].type != "hidden") document.forms["loginForm"].elements[ "password"].focus() // --> </script> </body>