2024-12-19





<%@ 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>
<div align="center">
<form method="post" action="Ex09.jsp">
<table border="1" width="300">
<tr>
<th>아이디</th>
<td>
<input type="text" name="id">
</td>
</tr>
<tr>
<th>비밀번호</th>
<td>
<input type="password" name="pwd">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="로그인">
<input type="reset" value="다시작성">
</td>
</tr>
</table>
</form>
</div>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
//String user_id = request.getParameter("id").trim();
//String user_pwd = request.getParameter("pwd").trim();
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<div align="center">
<table border="1" width="350">
<tr>
<th>아이디</th>
<td>${ param.id }</td>
</tr>
<tr>
<th>비밀번호</th>
<td>${ param.pwd }</td>
</tr>
</table>
</div>
</body>
</html>'JSP > 기초 내용 정리' 카테고리의 다른 글
| JSP(JSTL)_01 (0) | 2024.12.19 |
|---|---|
| JSP(JSTL)_00 (0) | 2024.12.19 |
| JSP(EL)_07 (0) | 2024.12.19 |
| JSP(EL)_06 (0) | 2024.12.19 |
| JSP(EL)_05 (0) | 2024.12.19 |