장바구니
문제
로그인화면
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ch06 : login.jsp</title>
</head>
<body>
<div align="center">
<H2>로그인</H2>
<form name="form1" method="POST" action="selProduct(2017305072 전은성).jsp">
<input type="text" name="username"/>
<input type="submit" value="로그인"/>
</form>
</div>
</body>
</html>
과일 선택 화면
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<title>ch06 : selProduct.jsp</title>
</head>
<%
request.setCharacterEncoding("UTF-8"); // euc-kr
session.setAttribute("username",request.getParameter("username"));
%>
<body>
<div align="center">
<H2>상품선택</H2>
<HR>
<%=session.getAttribute("username") %>님 환영합니다!!!!
<HR>
<form name="form1" method="POST" action="add(2017305072 전은성).jsp">
<SELECT name="product">
<option>사과</option>
<option>귤</option>
<option>파인애플</option>
<option>자몽</option>
<option>레몬</option>
</SELECT>
<input type="submit" value="추가"/>
</form>
<a href="checkOut(2017305072 전은성).jsp">계산</a>
</div>
</body>
</html>
Continue reading
쿠키설정
문제
메인화면
```jsp <%@ page language=”java” contentType=”text/html; charset=UTF-8” pageEncoding=”UTF-8”%> <%@page import=”java.net.URLEncoder”%>
Continue reading
문제
input 코드
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<% request.setCharacterEncoding("UTF-8"); %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>2017305072 전은성</title>
</head>
<body>
Home>회원 정보 입력<br>
<hr>
<fieldset>
<legend>개인 정보 입력</legend>
<br>
<form name="form1" method="post" action="Assign03_전은성_request1_result(2017305072).jsp">
이름 :<br>
<input type="text" name="name"><br><br>
비밀번호 :<br>
<input type="password" name="password"><br><br>
E-mail :<br>
<input type="text" name="email"><br><br>
연락처 : <br>
<select name="phone" size="1">
<option value="tmp" selected="selected">선택</option>
<option value="skt">SKT</option>
<option value="kt">KT</option>
<option value="lg">LG</option>
</select>
<input type="text" name="number1" maxlength="3" size="3">
-
<input type="text" name="number2" maxlength="4" size="4">
-
<input type="text" name="number3" maxlength="4" size="4"><br><br>
성별 : <input type="radio" value="남" name="sex">남 <input type="radio" value="여" name="sex">여<br><br>
취미 : <input type="checkbox" value="운동" name="hobby">운동
<input type="checkbox" value="독서" name="hobby">독서
<input type="checkbox" value="여행" name="hobby">여행
<input type="checkbox" value="음악감상" name="hobby">음악감상<br><br>
본인 소개:
<textarea rows="10" cols="80" name="you"></textarea><br>
<hr>
<div align="center">
<input type="submit" value="가입하기" name="join"> <input type="button" value="다시작성" name="redo">
</div>
</form>
</fieldset>
</body>
</html>
result 코드
```jsp <%@ page language=”java” contentType=”text/html; charset=UTF-8” pageEncoding=”UTF-8”%> <% request.setCharacterEncoding(“UTF-8”); %> <%@page import = “java.util.Enumeration”%> <!DOCTYPE html>
정보확인 Home>회원 정보 확인
이름 :<%=request.getParameter("name") %>
비밀번호 :<%=request.getParameter("password") %>
E-mail :<%=request.getParameter("email") %>
연락처 :<%=request.getParameter("phone") %> <%=request.getParameter("number1") %>-<%=request.getParameter("number2") %>-<%=request.getParameter("number3") %>
성별 :<%=request.getParameter("sex") %>
취미 : <% Enumeration enums = request.getParameterNames();Continue reading
문제
코드
```jsp <%@ page language=”java” contentType=”text/html; charset=UTF-8” pageEncoding=”UTF-8”%> <!DOCTYPE html>
Assign02_전은성.jsp학번 : 2017305072
성명 : 전은성
제출일 : 2022.03.23
<img src="../images/table_clock.jpg" width="150 "height="70" alt="table_clock">
<img src="../images/table_clock.jpg" width="200 "height="100" border="2" alt="table_clock">
1. Open JDK 다운로드 사이트 : [바로가기]
2. 아파치 톰캣 다운로드 사이트 : [바로가기]
3. 이클립스 다운로드 사이트 : [바로가기]
오늘의 미세먼지 정보
<img src="../images/airkorea.png" width="150 "height="70" alt="airkorea">
Continue reading
Browser에 문서 출력
문제
코드
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Browser에 문서 출력</title>
</head>
<body>
<i>
Written by EunSeoung Jeon<br>
<a href="https://naver.com">jjjes758@skuniv.ac.kr</a><br>
Address : 서울 성북구 정릉동 서경대학교 컴퓨터공학과<br>
Phone : 010-1234-1234<br>
</i>
<br>
수평선 위<br><br>
<hr>
<br>
수평선 아래<br><br>
<table border="1">
<caption align="bottom">[표 1] 시간표</caption>
<th>시작시간</th>
<th>업무</th>
<th>종료시간</th>
<tr>
<td>09:30</td>
<td>오전 회의</td>
<td>10:00</td>
</tr>
</table>
<table border="1">
<th>물품</th>
<th>가격</th>
<tr>
<td>프로그램</td>
<td rowspan="2">가격</td>
</tr>
</table>
<table border="1">
<th>1번 셀</th>
<th>2번 셀</th>
<tr>
<td colspan="2">1번과 2번 병합</td>
</tr>
</table>
<br>
물의 화학식은 H<sub>2</sub>O 이다.<br><br>
2<sup>4</sup>=16<br><br>
<form>
야구<input type="radio" name="exercise" value="야구"><br>
축구<input type="radio" name="exercise" value="축구"><br>
<select name="fruits">
<option value="배">배</option>
<option value="사과">사과</option>
<option value="감귤">감귤</option>
</select>
</form>
</body>
</html>
Continue reading