日期:2014-05-17 浏览次数:20625 次
<%@ page language= "java " pageEncoding= "GBK "%>
<%@ taglib uri= "/WEB-INF/struts-html.tld " prefix= "html "%>
<%@ taglib uri= "/WEB-INF/struts-logic.tld " prefix= "logic "%>
<%@ taglib uri= "/WEB-INF/struts-nested.tld " prefix= "nested "%>
<%@ taglib uri= "/WEB-INF/struts-template.tld " prefix= "template "%>
<%@ taglib uri= "/WEB-INF/struts-bean.tld " prefix= "bean "%>
<%@ taglib uri= "/WEB-INF/struts-tiles.tld " prefix= "tiles "%>
<html>
<head>
<title> 登陆 </title>
</head>
<body>
<center>
<h1> 登陆范例——Struts实现 </h1>
<hr>
<br>
<br>
<!-- 加入更加详细的错误提示 -->
<html:errors/>
<html:form action= "login " method= "post ">
<table>
<tr>
<td colspan= "2 "> 用户登陆 </td>
</tr>
<tr>
<td> 用户名: </td>
<td> <html:text property= "id "/> </td>
</tr>
<tr>
<td> 密 码: </td>
<td> <html:password property= "password "/> </td>
</tr>
<tr>
<td colspan= "2 ">
<html:submit value= "登陆 "/>
<html:reset value= "重置 "/>
</td>
</tr>
</table>
</html:form>
</center>
</body>
</html>
------解决方法--------------------
id.null
password.null在?源文件里有??