问题描述
- 用Struts2进行编写的留言板!!
-
<div id="right_content"> <div class="members_login"> <s:if test="#session.user != null"> <h3>欢迎您!<s:property value="#session.user.nickname"/> <s:if test="#session.user.username == 'admin'"> <a href="admin/admin">后台管理</a> </s:if> <a href="logout.action">注销</a></h3> <p><a href="showMessages.action" class="login_submit">进入留言</a></p> </s:if><s:else> <h1>用户登录</h1> <form action="login" method="post" name="form_login" onsubmit="return validate(this);"> <div class="login_row"> <label class="login">用户名:</label> <s:textfield name="username" cssClass="login_input"></s:textfield> </div> <div class="login_row"> <label class="login">密码:</label> <s:password name="password" cssClass="login_input"></s:password> </div> <div class="login_row"> <s:submit cssClass="login_submit" value="登录" ></s:submit> <label>没有用户名?请<a href="${pageContext.request.contextPath}/registerUI.action">注册</a></label> </div> </form> <s:fielderror cssStyle="color:red;font-size:12px"></s:fielderror> </s:else> </div>
onsubmit="return validate(this)几个。JSP页面都错误,自己弄了好久都没弄好,请高手教教我
时间: 2024-10-02 13:47:30