register.jsp
来自「Beginning Spring 2 源代码」· JSP 代码 · 共 84 行
JSP
84 行
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<html>
<head>
<title><spring:message code="title.register"/></title>
<!-- to correct the unsightly Flash of Unstyled Content.
http://www.bluerobot.com/web/css/fouc.asp -->
<script type="text/javascript"></script>
<style type="text/css" media="all">
@import "<c:url value="/css/pixweb.css" />";
</style>
</head>
<body onLoad="document.registrationForm.firstName.focus();">
<div id="container">
<div id="intro">
<div id="pageHeader">
<img src="<c:url value="/img/pixweb-logo.jpg" />" width="400">
<h2><span><spring:message code="subheader.register"/></span></h2>
</div>
<div id="quickSummary">
<p class="p1"><span>
<spring:message code="message.register" />
</span></p>
</div>
</div>
<div id="form">
<form:form commandName="user" name="registrationForm">
<form:errors path="*" />
<table>
<tr>
<td align="right"><spring:message code="firstName.label" /></td>
<td><form:input path="firstName" /></td>
<td><form:errors path="firstName" /></td>
</tr>
<tr>
<td align="right"><spring:message code="lastName.label" /></td>
<td><form:input path="lastName"/></td>
<td><form:errors path="lastName" /></td>
</tr>
<tr>
<td align="right"><spring:message code="email.label" /></td>
<td><form:input path="email" /></td>
<td><form:errors path="email" /></td>
</tr>
<tr>
<td align="right"><spring:message code="userName.label" /></td>
<td><form:input path="userName" /></td>
<td><form:errors path="userName" /></td>
</tr>
<tr>
<td align="right"><spring:message code="password.label" /></td>
<!--
Unfortunately the password entered in the login.jsp is not able
to be passed in and displayed here because Spring MVC 2.0.2 does
not allow the password to be shown, however, Spring MVC 2.0.3
and greater provides the showPassword attribute to facilitate
this functionality. I'd switch the version but I'm not sure if
this will break other parts of the PixWeb app.
-->
<td><form:password path="password" /></td>
<td><form:errors path="password" /></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3">
<input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}">
<input type="submit" value="Save" name="_eventId_submit" />
<input type="submit" value="Cancel" name="_eventId_cancel" />
</td>
</tr>
</table>
</form:form>
</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?