본문 바로가기
웹프로그래밍/JSP

param 내장객체

by 폴더맨 2024. 6. 8.

param 내장객체

<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<% request.setCharacterEncoding("euc-kr"); %>
<!DOCTYPE html>
<html>
<head>
<meta charset="EUC-KR">
<title>param 내장 객체 이용하기</title>
</head>
<body>
	<form method="post">
	이름 : <input type="text" size=20 name="name" value="${param['name'] }">
	나이 : <input type="text" size=20 name="age" value="${param['age'] }">
	주소 : <input type="text" size=20 name="address" value="${param['address'] }">
	<input type="submit" value="확인">
	</form>
	<p>
	이름 : ${param.name}<br>
	나이 : ${param.age}<br>
	주소 : ${param.address}<br>
</body>
</html>

'웹프로그래밍 > JSP' 카테고리의 다른 글

JSTL 변수처리  (0) 2024.06.08
표현언어와 자바빈  (0) 2024.06.08
표현언어  (0) 2024.06.08
자바빈 액션태그  (0) 2024.06.08
세션 로그인  (0) 2024.06.08