06method.jsp์ ์ฝ๋๋ด์ฉ
<%@page import="com.study.common.util.ProductList"%>
<%@page import="com.study.login.vo.UserVO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%request.setCharacterEncoding("UTF-8"); %>
<%@include file="/WEB-INF/inc/header.jsp" %>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%@include file="/WEB-INF/inc/top.jsp" %>
<!-- EL์์๋ ํน์ ๋ฉ์๋ ๊ทธ๋๋ก ์ฌ์ฉ ๊ฐ๋ฅ -->
<%
UserVO user = new UserVO("jyj","์์ฌ","1234","์ ");
request.setAttribute("u", user);
%>
<%=user.getUserId() %> : ${u.userId } <br>
<%=user.getUserName() %> : ${u.userName } <hr>
${u.getUserId() } : ${u.userId } <br>
${u.setUserId("gks") ; ''}
${u.getUserId() } : ${u.userId }
<%
ProductList.getProductList();
%>
${ ProductList.getProductList() }
<!-- EL๋ก ProductList์จ๋ import๊ฐ ํ์ํ๋ฐ ์๋์ผ๋ก ์๋จ -->
</body>
</html>
'๐ Today I Learned(๊ฐ๋ฐ์ธ์ดํ์ต) > JSP' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Day07(jstl)set, if, choose, for (0) | 2021.10.13 |
---|---|
Day07(el)lambda (0) | 2021.10.13 |
Day07(el)์ธ๋ฏธ์ฝ๋ก ์ฐ์ฐ์ (0) | 2021.10.13 |
Day07(el) ์ปฌ๋ ์ (0) | 2021.10.13 |
Day07(el) ์ฌ์น์ฐ์ฐ, ๋ฌธ์์ด, ๋น๊ต์ฐ์ฐ์ (0) | 2021.10.13 |