这样应该就可以吧
你打开ie的js报错
看怎么说

解决方案 »

  1.   

    多谢了,我解决了!
    <%@ page contentType="text/html;charset=gb2312" language="java" %>
    <%@ taglib uri="/WEB-INF/Struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/Struts-html.tld" prefix="html" %>
    <html:html locale="true">
    <head>
    <title>用户登录</title>
    <html:base/>
    <SCRIPT LANGUAGE=JAVASCRIPT>
    <!--
    function winOpen(a) {
    if(a=="o"){
    document.forms[0].action="./logon.do";
    document.forms[0].submit();
    }
    else{   
      document.forms[0].action="./login.do";
    document.forms[0].submit();

    }
    }
    -->
    </SCRIPT>
    </head>
    <body bgcolor="white" >
    <center>
    <html:errors/>
    <h>用户登录(Struts Test)</h>

    <html:form method="post" action="/logon">
    <table border="1" width="50%">
    <tr>
    <th align="right">用户名:</th>
    <td align="left">
    <html:text property="uname" size="10" maxlength="20"/>
    </td>
    </tr>
    <tr>
    <th align="right">密码:</th>
    <td align="left">
    <html:password property="pword" size="10" maxlength="20"/>
    </td>
    </tr>
    </table>
    <table>
    <tr>
    <td align="right">
    <html:submit property="submit" value="Submit" onclick="javascript:winOpen('o')"/>
    </td>
    <td align="center">
    <html:submit property="login" value="Login" onclick="javascript:winOpen('i')"/>
    </td>
    <td align="left">
    <html:reset/>
    </td>
    </tr>
    </table>
    </html:form>
    </center>
    </body>
    </html:html>