struts2---Error message的显示
时间:2011-01-07 来源:Java Oracle SQL技术
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head> <title>login</title> </head>
<body>
<s:actionerror/>
<s:actionmessage/>
<form action="login_login.action" method="post">
user Name:<input name="loginname" type="text" value="admin"><s:fielderror fieldName="loginname" />
<br>
pwd:<input type="password" name="loginpwd" value="pwd"><s:fielderror fieldName="loginpwd" /><br>
<input type="submit" value="submit">
</form>
</body>
</html>
相关阅读 更多 +