直接   
 <html:form action="login?methods=login" method="POST"> 
        u: <html:text property="userName"> </html:text> <br/> 
        p: <html:password property="passWord"> </html:password> 
<html:submit>提交</html:submit>
    </html:form> 
就可以了。为什么还要专门写个button来调javascript来提交?