useBean
<%@page import="domain.Member"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<jsp:useBean id="member" class="domain.Member" scope="request"/>
<jsp:setProperty property="id" name="member" value="babamba"/>
<jsp:setProperty property="pw" name="member" value="1234"/>
<jsp:setProperty property="name" name="member" value="바밤바"/>
<h2>${member.id }</h2>
<h2><%=member.getId() %></h2>
<h2><jsp:getProperty property="id" name="member"></h2>
<h2><c:out value="${member.id }"/></h2>
</body>
</html>
'자바 풀스택 공부' 카테고리의 다른 글
Day 51. [JSP/Servlet] 오픈소스 - 업로드 (0) | 2022.03.18 |
---|---|
Day 50. [JSP/Servlet] 커스텀 태그 (0) | 2022.03.18 |
Day 49. [JSP/Servlet] 쿠키 & 세션 (0) | 2022.03.16 |
Day 48. [JSP/Servlet] 롬복 설정, 회원가입 만들기 (0) | 2022.03.15 |
Day 47. [Java] InputStream, OutputStream (0) | 2022.03.14 |
댓글