jsp 19) result

hahahoho셍·2021년 5월 29일
0

jsp

목록 보기
18/51
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>forward 결과창</title>
</head>
<body>
	<h2>forward 결과창</h2>
	<%
		int weight = (int)request.getAttribute("weight"); //다운캐스팅
		int height = (int)request.getAttribute("height");
	%>
	사각형의 넓이는? <br>
	<%=weight*height%> <br>
	
</body>
</html>
profile
그냥 공부 한거 적는 벨로그 하하하핳ㅎ하하하핳하ㅏ

0개의 댓글