Newer
Older
java_learning / SpringMVC_sample / src / main / webapp / WEB-INF / views / regSample1.jsp
himeno on 2 Aug 2019 2 KB init
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
td, th {
	padding: 20px;
}
.border_right {
	border-right: solid 2px blue ;
}
table {
	position: relative ;
	top: -8px;
}
</style>
<title>会員登録画面</title>
</head>
<body>
	<h1>会員登録</h1>
	<hr color="blue" size="0">
	<form:form action="/reg_sample_1_confirm" modelAttribute="userInfo">
		<table cellspacing="0">
			<tr>
				<th valign="top" align="right" class="border_right">ユーザID:</th>
				<td colspan="2"><form:input path="userId" /></td>
			</tr>
			<tr>
				<th valign="top" align="right" class="border_right">名前:</th>
				<td colspan="2"><form:input path="userName" /></td>
			</tr>
			<tr>
				<th valign="top" align="right" class="border_right">性別:</th>
				<td colspan="2">
					<form:form modelAttribute="radiobuttonsModel">
						<form:radiobuttons path="selectedIsbn" items="${sexList}" itemLabel="label" itemValue="sex" delimiter="&nbsp;&nbsp;&nbsp;"/>
					</form:form>
				</td>
			</tr>
			<tr>
				<th valign="top" align="right" class="border_right">生年月日:</th>
				<td colspan="2"><form:input path="birthday" /></td>
			</tr>
			<tr>
				<th valign="top" align="right" class="border_right">住所:</th>
				<td colspan="2"><form:input path="address" /></td>
			</tr>
			<tr>
				<th valign="top" align="right" class="border_right">電話番号:</th>
				<td colspan="2"><form:input path="telephone" /></td>
			</tr>
			<tr>
				<th valign="top" align="right" class="border_right">メールアドレス:</th>
				<td colspan="2"><form:input path="mail" /></td>
			</tr>
			<tr>
				<td></td>
				<td align="center"><input type="submit" value="登録" /></td>
				<td align="center"><input type="button" value="メニュー画面へ" onClick="location.href='http://localhost:8080/'"></td>
			</tr>
		</table>
	</form:form>
	<p></p>
</body>
</html>