728x90
반응형
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%-- src/main/webapp/view/member/info.jsp : main 화면
http://localhost:8088/jsp3/member/info?id=admin 요청시 info.jsp 화면에 출력하기
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="path" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>회원 정보 보기</title>
</head>
<body>
<hr>
<div class="container" style="width:80%; " >
<h2 id="center">회원정보조회</h2>
<div class="row">
<div class="col-3 bg-light">
<%--
${member.picture} : member 객체에 get 프로퍼티 호출
member.getPicture() 호출됨
--%>
<img src="${path }/picture/${member.picture}" width="100" height="120">
</div>
<div class="col-9">
<div class="form-group"><label for="id">아이디:</label>${member.id}</div>
<div class="form-group"><label for="name" >이름:</label>${member.name}</div>
<div class="form-group"><label for="gender">성별:</label> <label class="radio-inline"> </label>
${member.gender == 1 ? "남" : "여" }</div>
<div class="form-group"><label for="tel">전화번호:</label>${member.tel}</div>
<div class="form-group"><label for="email">이메일:</label>${member.email}</div>
</div>
<div id="center" style="padding: 3px;">
<button type="button" class="btn btn-dark"
onclick="location.href='${path}/member/updateForm?id=${member.id}'">회원정보수정</button>
<button type="button" class="btn btn-dark"
onclick="location.href='${path}/member/deleteForm?id=${member.id}'">회원탈퇴</button>
</div>
</div>
</body>
</html>
728x90
반응형
'study > MVC' 카테고리의 다른 글
[MVC] 18. MVC Model2방식 - 회원가입 (회원탈퇴) (0) | 2022.04.15 |
---|---|
[MVC] 18. MVC Model2방식 - 회원가입 (index) (0) | 2022.04.15 |
[MVC] 18. MVC Model2방식 - 회원가입 (회원관리) (0) | 2022.04.14 |
[MVC] 18. MVC Model2방식 - 회원가입 (로그인) (0) | 2022.04.14 |
[MVC] 18. MVC Model2방식 - 회원가입 (회원가입) (0) | 2022.04.14 |