这样应该就可以吧
你打开ie的js报错
看怎么说
你打开ie的js报错
看怎么说
解决方案 »
- Struts2 國際化的問題
- 求助!控制台打印出信息了,但是页面没有显示,为什么?
- 这个异常是怎么回事啊?
- ext属性作用
- 一个不同寻常的Servlet.service() for servlet action threw exceptionjava.lang.NullPointerException(高分,急急!!!!)
- Struts的Validator问题,比较复杂求达人解答!
- 菜鸟请教个问题
- 各位前辈请你们帮帮我!!!!!!!!!
- 请高手指点!!!
- 各位大虾,什么是WebService?我只懂jsp,servlet和简单的ejb,怎么用webservice做一个简单的例子
- applet中连接数据库的问题
- weblogic7.0的问题
<%@ 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>