chapter6.doc
|
|
- 현정 양
- 5 years ago
- Views:
Transcription
1 Chapter 6. http..? ID. ID ecrm(ebusiness )., ecrm.. Cookie.....,. 20, JSP. Cookie API javax.servlet.http. 3.
2 API. Cookie(String name, String value). name value. setxxx. getxxx. public int getmaxage() :.. public void setmaxage(int MaxAge) :.. 1. public String getdomain() :. public void setdomain(string Domain) :.. setdomain.. 2..yahoo.com yahoo.com. public String getpath() : path. public void setpath(string path) : path, path path path., jsp.boolpae.com/jsp/example.jsp jsp jsp.boolpae.com/xml. setpath( / ). / public void setvalue(string value) : value().. public String getvalue() :.
3 Example. JSP. List 6.1 setcookie.jsp <HTML> <HEAD> <TITLE> Set Cookie</TITLE> </HEAD> <BODY> <% for(int i=0;i<5;i++){ Cookie c = new Cookie("First Cookie"+i, "Value"+i); c.setmaxage(5); response.addcookie(c); c = new Cookie("Second Cookie"+i, "Value"+i); c.setmaxage(60*60); response.addcookie(c); %> <center> <h1> Cookie Example </h1> 5 10.<br> 5 5, 5 1. <hr> <a href="showcookie.jsp">cookie </a> </BODY> </HTML> List 6.1.
4 List 6.2 showcookie.jsp <HTML> <HEAD> <TITLE> show Cookie </TITLE> </HEAD> <BODY> <center> <h1> Cookie Example </h1> <table border=1> <tr><td bgcolor="gray"> </td> <td bgcolor="gray"></td></tr> <% Cookie[] c = request.getcookies(); for(int i=0;i<c.length;i++){ %> Cookie cookie = c[i]; <tr><td><%=cookie.getname()%></td><td><%=cookie.getvalue()%></tr> <% %> </table> </BODY>
5 </HTML> List 6.2 JSP. Cookie request.getcookies(). getname getvalue., [ ]
6 Second Cookie., JSESSIONID ID., ID. CookieUtil. List 6.3 CookieUtil.java package com.boolpae.jsp; import javax.servlet.http.cookie; public class CookieUtil{ public static String getvalue(cookie[] cookies, String name){ for(int i=0;i<cookies.length;i++){ if(name.equals(cookies[i].getname()))
7 return cookies[i].getvalue(); return null; public static Cookie getcookie(cookie[] cookies, String name){ for(int i=0;i<cookies.length;i++){ if(name.equals(cookies[i].getname())) return cookies[i]; return null; Cookie Cookie (value). static. JSP. List 6.4 CookitUtilExample.jsp page import="com.boolpae.jsp.cookieutil" %> <% Cookie c = new Cookie("Book", "JavaServer Pages"); response.addcookie(c); c = new Cookie("Jazz","BlueNote"); response.addcookie(c); %> <HTML> <HEAD> <TITLE> CookieUtilTest </TITLE> </HEAD> <BODY> <center> <h1>cookieutil Example</h1> <%= CookieUtil.getValue(request.getCookies(), "Book") %><br> <%= CookieUtil.getValue(request.getCookies(), "Jazz") %> </BODY> </HTML>
8 . null. Cookie. response Header. refresh... List 6.5 BlueCookie.java package com.boolpae.jsp; import javax.servlet.http.cookie; public class BlueCookie extends Cookie{ public static final String path = "/"; public BlueCookie(String name, String value, int maxage){ super(name, value); setmaxage(maxage); setpath(path);
9 maxage, path /. CookieUtilExample.jsp. List 6.6 CookieUtilExample.jsp page import="com.boolpae.jsp.*"%> <% Cookie c = new Cookie("Book", "JavaServer Pages"); response.addcookie(c); c = new Cookie("Jazz","BlueNote"); response.addcookie(c); c = new BlueCookie("Movie","JSA", 5); response.addcookie(c); %> <HTML> <HEAD> <TITLE> CookieUtilTest </TITLE> </HEAD> <BODY> <center> <h1>cookieutil Example</h1> <%= CookieUtil.getValue(request.getCookies(), "Book") %><br> <%= CookieUtil.getValue(request.getCookies(), "Jazz") %><br> <%= CookieUtil.getValue(request.getCookies(), "Movie") %> </BODY> </HTML>. 5 refresh Movie null.
10 response. addcookie. maxage 0 addcookie.. Cookie c = new Cookie( xxx, yyy ); response.addcookie(c); c = new Cookie( xxx, yyy ); c.setmaxage(0); response.addcookie(c); (?)maxage0. Session Http. Cookie.? URL-rewriting Hidden Form session. URL-rewriting sessionid, Hidden Form HTML form <input type= hidden name= name value= value > GET POST.
11 . Session. Session API Session javax.servlet.http.httpsession. HttpSession. public Object getattribute(string name) name value. String session Object. API 2.1. getvalue, 2.2 getattribute. getvalue.(aip deprecated ) pubic void setattribute(string name, Object value). Object. putvalue getvalue deprecated. public void removeattribute(string name). removevalue deprecated.. public Enumeration getattributenames() name Enumeration. public String getid() ID. ID. public long getcreationtime() long. millisecond millisecond. public void invalidate().. public boolean isnew() boolean. invalidate
12 isnew true. Example... JSP JSP.,.,..., ( ). JSP Books JSP. CartPage JSP. CartPage.jsp. CartPage.jsp. (?) Request JSP. Cartpage.jsp... CartPage.jsp.. Book. List 6.7 Book.java package com.boolpae.jsp; public class Book{ private String isbn; private String title; private int price; public Book(String isbn, String title, int price){
13 this.isbn = isbn; this.title = title; this.price = price; public String getisbn(){ return isbn; public String gettitle(){ return title; public int getprice(){ return price;. isbn,, ( ).. BookList, BookList. List 6.8 BookList.java package com.boolpae.jsp; import java.util.vector; public class BookList{ private static Vector books= new Vector(); static{ books.addelement(new Book("A010101", "JavaServer Pages by ", 100 )); books.addelement(new Book("A020202", "JavaServer Pages by ", 40 )); public static Vector getbooks(){ return books;
14 public static Book getbook(string isbn){ if(isbn == null) return null; for(int i=0;i<books.size();i++){ Book book = (Book)books.elementAt(i); if(isbn.equals(book.getisbn())){ return book; return null; BookList. Book Book. static. static books. static static{. Vector ISBN ISBN Book.. List 6.9 Order.java package com.boolpae.jsp; public class Order{ private Book book; private int count = 1; public Order(Book book){ this.book = book; public Book getbook(){ return book; public void pluscount(){ count++; public void setcount(int c){ this.count = c; public int getcount(){ return count;
15 public int gettotalprice(){ return book.getprice()*count; Order. Book (count). 1 1 pluscount setcount. (Cart). List 6.10 Cart.java package com.boolpae.jsp; import java.util.vector; public class Cart{ private Vector ordered; public Cart(){ ordered = new Vector(); public Vector getordered(){ return ordered; public void addbook(string isbn){ for(int i=0;i<ordered.size();i++){ Order order = (Order)ordered.elementAt(i); if(isbn.equals(order.getbook().getisbn())){ order.pluscount(); return; Order neworder = new Order(BookList.getBook(isbn)); ordered.addelement(neworder); public void setcount(string isbn, int count){ Order order; for(int i=0;i<ordered.size();i++){ order = (Order)ordered.elementAt(i); if(isbn.equals(order.getbook().getisbn())){ if(count<=0){ ordered.removeelementat(i); else{ order.setcount(count); return;
16 Order neworder = new Order(BookList.getBook(isbn)); ordered.addelement(neworder);. Vector ordered Order Vector.. addbook, setcount., addbook..? addbook ISBN 1 ( -Order pluscount ),.(ordered Book addelement ) setcount. ISBN ISBN.( -Order setcount ) ,.. URL... JSP.. List 6.11 Books.jsp <%@ page import="java.util.vector" contenttype="text/html;charset=euc- KR" %> <HTML> <HEAD> <TITLE> Session Example </TITLE> <style> BODY, PRE {font-family:tahoma, ; font-size:8pt.blue{color:blue; font-size:15pt </style>
17 </HEAD> <BODY> <center> <h1> Shopping Cart Example </h1> <hr> <pre> <% Vector books = com.boolpae.jsp.booklist.getbooks(); for(int i=0;i<books.size();i++){ com.boolpae.jsp.book book = (com.boolpae.jsp.book)books.elementat(i); %> <font class= blue><%= book.gettitle()%></font><p> : <%=book.getprice()%> / ISBN: <%=book.getisbn()%> <form method='get' action='cartpage.jsp'> <input type='hidden' name="isbn" value='<%=book.getisbn()%>'> <input type='submit' value=' '> </form> <hr> <% %> </BODY> </HTML> JSP. 2. <form> CartPage.jsp. Form hidden ISBN. Book (!). page import.. List [Books.jsp]
18 JSP.. ISBN CartPage.jsp. List 6.12 CartPage.jsp page import="java.util.vector" contenttype="text/html;charset=euc- KR" %> <jsp:usebean id="cart" class="com.boolpae.jsp.cart" scope="session" /> <HTML> <HEAD> <TITLE> add Cart </TITLE> </HEAD> <BODY> <center> <h1> Example</h1> <% String requestisbn = request.getparameter("isbn"); String requestcount = request.getparameter("count");
19 if(requestisbn!= null){ if(requestcount == null){ cart.addbook(requestisbn); else{ int parsecount; try{ parsecount = Integer.parseInt(requestCount); catch(numberformatexception e){ parsecount = 1; cart.setcount(requestisbn, parsecount); Vector ordered = cart.getordered(); if(ordered.size() == 0){ out.print("<h1> </h1>"); else{ out.print("<table border=1><tr><td>isbn</td><td> </td><td> </td><td> </td><td> </td>"); for(int i=0;i<ordered.size();i++){ com.boolpae.jsp.order order = (com.boolpae.jsp.order)ordered.elementat(i); int count = order.getcount(); com.boolpae.jsp.book book = order.getbook(); String isbn = order.getbook().getisbn(); String title = order.getbook().gettitle(); int price = book.getprice(); int totalprice = order.gettotalprice(); %> <tr> <td><%=isbn%></td> <td><%=title%></td> <td><%=price%></td> <td><form method="get" action="cartpage.jsp"> <input type="hidden" name="isbn" value="<%=isbn%>"> <input type="text" size="5" maxlength="2" name="count" value="<%=count%>"> <input type="submit" value=" "> </form> </td> <td><font color="red"><%=totalprice%></font></td> </tr> <% //end of for %> </table> : 1. <% //end of if %> </BODY> </HTML>
20 <jsp:usebean>. Session Session. <jsp:usebean id= cart class= com.boolpae.jsp.cart scope= session />? Cart. <% com.boolpae.jsp.cart cart = new com.boolpae.jsp.cart(); session.setattribute( cart, cart); %>.... String requestisbn = request.getparameter("isbn"); String requestcount = request.getparameter("count"); if(requestisbn!= null){ if(requestcount == null){ cart.additem(requestisbn); else{ int parsecount; try{ parsecount = Integer.parseInt(requestCount); catch(numberformatexception e){ parsecount = 1; cart.setcount(requestisbn, parsecount); isbn count. Books.jsp ISBN. cart.addbook. requestcount null Books.jsp. count null. null cart.setcount. requestisbn parsecount setcount int. request String int Integer.parseInt. int ( int ) NumberFormatException. Count1. parsecount setcount. 0.. <form> text
21 . form (count)isbn. Book Order. JavaServer Pages. [CartPage.jsp - 1], [CartPage.jsp 2]
22 ... List 6.13 UserList.java package com.boolpae.jsp; import java.util.*; public class UserList{ private static Vector uservector = new Vector(); public static void adduser(string username){ String temp; for(int i=0;i<uservector.size();i++){ temp = (String)userVector.elementAt(i); if(username.equals(temp)){ return; uservector.addelement(username); public static void removeuser(string user){
23 String temp; for(int i=0;i<uservector.size();i++){ temp = (String)userVector.elementAt(i); if(user.equals(temp)){ uservector.removeelementat(i); return; public Vector getuser(){ return uservector; List Vector, Vector. List List 6.14 User.java package com.boolpae.jsp; import javax.servlet.http.*; public class User implements HttpSessionBindingListener{ private String username; public void setusername(string username){ this.username = username; UserList.addUser(userName); public void valuebound(httpsessionbindingevent event){ // UserListBean.addUser(userName); public void valueunbound(httpsessionbindingevent event){ UserList.removeUser(userName); javax.servlet.http.httpsessionbindinglistener. valuebound valueunbound.. Vector
24 Vector. valueunbound. jsp. List 6.15 UserList.jsp <HTML> <BODY> <H1>User List example</h1> <jsp:usebean id="userlist" class="com.boolpae.jsp.userlist" scope="application" /> <jsp:usebean id="user" class="com.boolpae.jsp.user" scope="session" /> <jsp:setproperty name="user" property="username" value="bluenote" /> <% java.util.vector uservector = userlist.getuser(); for(int i=0;i<uservector.size();i++){ out.print(uservector.elementat(i)); %> </BODY> </HTML>. List 6.15 UserList.jsp <jsp:setproperty>value.. BlueNote. value. 1 refresh. 1. jsp web.xml 1. List 6.16web.xml
25 . List 6.16 web.xml <?xml version="1.0" encoding="iso "?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" " <web-app> <session-config> <session-timeout> 1 </session-timeout> </session-config> </web-app> web.xml WEB-INF web.xml. JSP WEB-INF, META-INF. WEB-INF web.xml. jsp:setproperty value.
I T C o t e n s P r o v i d e r h t t p : / / w w w. h a n b i t b o o k. c o. k r
I T C o t e n s P r o v i d e r h t t p : / / w w w. h a n b i t b o o k. c o. k r I T C o t e n s P r o v i d e r h t t p : / / w w w. h a n b i t b o o k. c o. k r Jakarta is a Project of the Apache
More information14-Servlet
JAVA Programming Language Servlet (GenericServlet) HTTP (HttpServlet) 2 (1)? CGI 3 (2) http://jakarta.apache.org JSDK(Java Servlet Development Kit) 4 (3) CGI CGI(Common Gateway Interface) /,,, Client Server
More informationTP_jsp7.PDF
(1) /WEB_INF.tld /WEB_INF/lib (2) /WEB_INF/web.xml (3) http://{tag library }/taglibs/{library} /web_inf/{
More information04장
20..29 1: PM ` 199 ntech4 C9600 2400DPI 175LPI T CHAPTER 4 20..29 1: PM ` 200 ntech4 C9600 2400DPI 175LPI T CHAPTER 4.1 JSP (Comment) HTML JSP 3 home index jsp HTML JSP 15 16 17 18 19 20
More informationJAVA Bean & Session - Cookie
JAVA Bean & Session - Cookie [ 우주최강미남 ] 발표내용소개 자바빈 (Java Bean) 자바빈의개요 자바빈의설계규약 JSP 에서자바빈사용하기 자바빈의영역 세션과쿠키 (Session & Cookie) 쿠키의개요 쿠키설정 (HTTP 서블릿 API) 세션의개요 JSP 에서의세션관리 Java Bean Q. 웹사이트를개발한다는것과자바빈?? 웹사이트라는것은크게디자이너와프로그래머가함께개발합니다.
More information작성자 : 김성박\(삼성 SDS 멀티캠퍼스 전임강사\)
Session 을이용한현재로그인한사용자의 숫자구하기 작성자 : 김성박 ( 삼성 SDS 멀티캠퍼스전임강사 ) email : urstory@nownuri.net homepage : http://sunny.sarang.net - 본문서는http://sunny.sarang.net JAVA강좌란 혹은 http://www.javastudy.co.kr 의 칼럼 란에서만배포합니다.
More informationData Provisioning Services for mobile clients
11 장. 세션과쿠키 세션의원리 세션의기본개념 1. 세션의활용 접속중인웹브라우저각각에대응하여서로다른세션이생성되고활용 2/35 1. 세션의활용 세션의원리 세션의생성시점과종료시점 session 생성시기임의의웹브라우저부터의첫번째요청을처리할때 session이생성되고관련타이머가동작한다. session 소멸시기 1) 세션타이머가만료 2) 코드상에서명시적으로세션소멸 한명의브라우저사용자에대해지속적으로관리해야하는데이터저장장소로서세션을활용
More informationPowerPoint 프레젠테이션
실습문제 Chapter 05 데이터베이스시스템... 오라클로배우는데이터베이스개론과실습 1. 실습문제 1 (5 장심화문제 : 각 3 점 ) 6. [ 마당서점데이터베이스 ] 다음프로그램을 PL/SQL 저장프로시져로작성하고실행해 보시오. (1) ~ (2) 7. [ 마당서점데이터베이스 ] 다음프로그램을 PL/SQL 저장프로시져로작성하고실행해 보시오. (1) ~ (5)
More information07 자바의 다양한 클래스.key
[ 07 ] . java.lang Object, Math, String, StringBuffer Byte, Short, Integer, Long, Float, Double, Boolean, Character. java.util Random, StringTokenizer Calendar, GregorianCalendar, Date. Collection, List,
More informationPowerPoint 프레젠테이션
@ Lesson 2... ( ). ( ). @ vs. logic data method variable behavior attribute method field Flow (Type), ( ) member @ () : C program Method A ( ) Method B ( ) Method C () program : Java, C++, C# data @ Program
More informationJavaGeneralProgramming.PDF
, Java General Programming from Yongwoo s Park 1 , Java General Programming from Yongwoo s Park 2 , Java General Programming from Yongwoo s Park 3 < 1> (Java) ( 95/98/NT,, ) API , Java General Programming
More informationrmi_박준용_final.PDF
(RMI) - JSTORM http://wwwjstormpekr (RMI)- Document title: Document file name: Revision number: Issued by: Document Information (RMI)- rmi finaldoc Issue Date: Status:
More informationchapter5.doc
Chapter 5 Custom Tag Library javabeans jsp, Bean jsp content scripting jsp ( ) xxx, Custom tag( ) 1 Tag Handler Class ( ) 2 Tag Library Descriptor File ( ) 3 taglib (JSP ) Tag Handler Class ( ) Class,
More information뇌를 자극하는 JSP & Servlet 슬라이드
쿠키와세션 JSP & Servlet 2/51 Contents 학습목표 셋이상의화면으로구성된웹애플리케이션을작성할때에는 JSP 페이지나서블릿클래스들이서로데이터를주고받도록만들어야할필요가있다. 이장에서는이럴때필요한쿠키와세션기술에대해알아보자. 내용 쿠키와세션 쿠키기술 세션기술 / HttpSession 3/50 1. 쿠키와세션 (1) 세션 (Session) - 정의 클라이언트의연속적인요청또는그요청에대한서비스기간
More informationPHP & ASP
단어장프로젝트 프로젝트2 단어장 select * from address where address like '% 경기도 %' td,li,input{font-size:9pt}
More information09-interface.key
9 Database insert(record r): boolean find(key k): Record 1 Record getkey(): Key * Record Key Database.? Key equals(key y): boolean Database insert(record r): boolean find(key k): Record * Database OK 1
More informationKYO_SCCD.PDF
1. Servlets. 5 1 Servlet Model. 5 1.1 Http Method : HttpServlet abstract class. 5 1.2 Http Method. 5 1.3 Parameter, Header. 5 1.4 Response 6 1.5 Redirect 6 1.6 Three Web Scopes : Request, Session, Context
More information중간고사
중간고사 담당교수 : 단국대학교응용컴퓨터공학박경신 답은반드시답안지에기술할것. 공간이부족할경우반드시답안지몇쪽의뒤에있다고명기한후기술할것. 그외의경우의답안지뒤쪽이나연습지에기술한내용은답안으로인정안함. 답에는반드시네모를쳐서확실히표시할것. 답안지에학과, 학번, 이름외에본인의암호 (4자리숫자 ) 를기입하면성적공고시학번대신암호를사용할것임. 1. JSP 란무엇인가? 간단히설명하라.
More informationPART 1 CHAPTER 1 Chapter 1 Note 4 Part 1 5 Chapter 1 AcctNum = Table ("Customer").Cells("AccountNumber") AcctNum = Customer.AccountNumber Note 6 RecordSet RecordSet Part 1 Note 7 Chapter 1 01:
More informationMobile Service > IAP > Android SDK [ ] IAP SDK TOAST SDK. IAP SDK. Android Studio IDE Android SDK Version (API Level 10). Name Reference V
Mobile Service > IAP > Android SDK IAP SDK TOAST SDK. IAP SDK. Android Studio IDE 2.3.3 Android SDK Version 2.3.3 (API Level 10). Name Reference Version License okhttp http://square.github.io/okhttp/ 1.5.4
More informationInterstage5 SOAP서비스 설정 가이드
Interstage 5 Application Server ( Solaris ) SOAP Service Internet Sample Test SOAP Server Application SOAP Client Application CORBA/SOAP Server Gateway CORBA/SOAP Gateway Client INTERSTAGE SOAP Service
More informationJMF2_심빈구.PDF
JMF JSTORM http://wwwjstormpekr Issued by: < > Document Information Document title: Document file name: Revision number: Issued by: JMF2_ doc Issue Date: Status: < > raica@nownurinet
More information3ÆÄÆ®-14
chapter 14 HTTP >>> 535 Part 3 _ 1 L i Sting using System; using System.Net; using System.Text; class DownloadDataTest public static void Main (string[] argv) WebClient wc = new WebClient(); byte[] response
More informationAnalytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Cras
Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Crash Unity SDK... Log & Crash Search. - Unity3D v4.0 ios
More informationJ2EE Concepts
! Introduction to J2EE (1) - J2EE Servlet/JSP/JDBC iseminar.. 1544-3355 ( ) iseminar Chat. 1 Who Are We? Business Solutions Consultant Oracle Application Server 10g Business Solutions Consultant Oracle10g
More informationSK Telecom Platform NATE
SK Telecom Platform NATE SK TELECOM NATE Browser VER 2.6 This Document is copyrighted by SK Telecom and may not be reproduced without permission SK Building, SeRinDong-99, JoongRoGu, 110-110, Seoul, Korea
More informationMicrosoft PowerPoint - web-part03-ch19-node.js기본.pptx
과목명: 웹프로그래밍응용 교재: 모던웹을 위한 JavaScript Jquery 입문, 한빛미디어 Part3. Ajax Ch19. node.js 기본 2014년 1학기 Professor Seung-Hoon Choi 19 node.js 기본 이 책에서는 서버 구현 시 node.js 를 사용함 자바스크립트로 서버를 개발 다른서버구현기술 ASP.NET, ASP.NET
More informationDocsPin_Korean.pages
Unity Localize Script Service, Page 1 Unity Localize Script Service Introduction Application Game. Unity. Google Drive Unity.. Application Game. -? ( ) -? -?.. 준비사항 Google Drive. Google Drive.,.. - Google
More information신림프로그래머_클린코드.key
CLEAN CODE 6 11st Front Dev. Team 6 1. 2. 3. checked exception 4. 5. 6. 11 : 2 4 : java (50%), javascript (35%), SQL/PL-SQL (15%) : Spring, ibatis, Oracle, jquery ? , (, ) ( ) 클린코드를 무시한다면 . 6 1. ,,,!
More informationJMF3_심빈구.PDF
JMF JSTORM http://wwwjstormpekr Issued by: < > Revision: Document Information Document title: Document file name: Revision number: Issued by: JMF3_ doc Issue Date:
More informationPowerPoint 프레젠테이션
@ Lesson 3 if, if else, if else if, switch case for, while, do while break, continue : System.in, args, JOptionPane for (,, ) @ vs. logic data method variable Data Data Flow (Type), ( ) @ Member field
More informationSpring Data JPA Many To Many 양방향 관계 예제
Spring Data JPA Many To Many 양방향관계예제 오라클자바커뮤니티 (ojc.asia, ojcedu.com) 엔티티매핑 (Entity Mapping) M : N 연관관계 사원 (Sawon), 취미 (Hobby) 는다 : 다관계이다. 사원은여러취미를가질수있고, 하나의취미역시여러사원에할당될수있기때문이다. 보통관계형 DB 에서는다 : 다관계는 1
More informationEclipse 와 Firefox 를이용한 Javascript 개발 발표자 : 문경대 11 년 10 월 26 일수요일
Eclipse 와 Firefox 를이용한 Javascript 개발 발표자 : 문경대 Introduce Me!!! Job Jeju National University Student Ubuntu Korean Jeju Community Owner E-Mail: ned3y2k@hanmail.net Blog: http://ned3y2k.wo.tc Facebook: http://www.facebook.com/gyeongdae
More information다른 JSP 페이지호출 forward() 메서드 - 하나의 JSP 페이지실행이끝나고다른 JSP 페이지를호출할때사용한다. 예 ) <% RequestDispatcher dispatcher = request.getrequestdispatcher(" 실행할페이지.jsp");
다른 JSP 페이지호출 forward() 메서드 - 하나의 JSP 페이지실행이끝나고다른 JSP 페이지를호출할때사용한다. 예 ) RequestDispatcher dispatcher = request.getrequestdispatcher(" 실행할페이지.jsp"); dispatcher.forward(request, response); - 위의예에서와같이 RequestDispatcher
More information03장
CHAPTER3 ( ) Gallery 67 68 CHAPTER 3 Intent ACTION_PICK URI android provier MediaStore Images Media EXTERNAL_CONTENT_URI URI SD MediaStore Intent choosepictureintent = new Intent(Intent.ACTION_PICK, ë
More informationMasoJava4_Dongbin.PDF
JSTORM http://wwwjstormpekr Issued by: < > Revision: Document Information Document title: Document file name: MasoJava4_Dongbindoc Revision number: Issued by: < > SI, dbin@handysoftcokr
More informationExt JS À¥¾ÖÇø®ÄÉÀ̼ǰ³¹ß-³¹Àå.PDF
CHAPTER 2 (interaction) Ext JS., HTML, onready, MessageBox get.. Ext JS HTML CSS Ext JS.1. Ext JS. Ext.Msg: : Ext Ext.get: DOM 22 CHAPTER 2 (config). Ext JS.... var test = new TestFunction( 'three', 'fixed',
More information비긴쿡-자바 00앞부속
IT COOKBOOK 14 Java P r e f a c e Stay HungryStay Foolish 3D 15 C 3 16 Stay HungryStay Foolish CEO 2005 L e c t u r e S c h e d u l e 1 14 PPT API C A b o u t T h i s B o o k IT CookBook for Beginner Chapter
More informationMicrosoft PowerPoint 세션.ppt
웹프로그래밍 () 2006 년봄학기 문양세강원대학교컴퓨터과학과 세션변수 (Session Variable) (1/2) 쇼핑몰장바구니 장바구니에서는사용자가페이지를이동하더라도장바구니의구매물품리스트의내용을유지하고있어야함 PHP 에서사용하는일반적인변수는스크립트의수행이끝나면모두없어지기때문에페이지이동시변수의값을유지할수없음 이러한문제점을해결하기위해서 PHP 에서는세션 (session)
More informationilist.add(new Integer(1))과 같이 사용하지 않고 ilist.add(1)과 같이 사용한 것은 자바 5.0에 추가된 기본 자료형과 해당 객체 자료 형과의 오토박싱/언박싱 기능을 사용한 것으로 오토박싱이란 자바 컴파일러가 객체를 요구하는 곳에 기본 자료형
바에 제네릭스(generics)를 도입하기 위한 연구는 이미 8년 전인 1996년부터라고 한다. 실제로 자바에 제네릭스를 도입하 는 몇 가지 방안들이 논문으로 나오기 시작한 것이 1998년 초임을 감 안하면 무려 8년이 지난 후에야 자바 5.0에 전격 채택되었다는 것은 이것이 얼마나 어려운 일이었나 하는 것을 보여준다. 자바의 스펙을 결정하는 표준화 절차인
More informationchapter1,2.doc
JavaServer Pages Version 08-alpha copyright2001 B l u e N o t e all rights reserved http://jspboolpaecom vesion08-alpha, UML (?) part1part2 Part1 part2 part1 JSP Chapter2 ( ) Part 1 chapter 1 JavaServer
More information@OneToOne(cascade = = "addr_id") private Addr addr; public Emp(String ename, Addr addr) { this.ename = ename; this.a
1 대 1 단방향, 주테이블에외래키실습 http://ojcedu.com, http://ojc.asia STS -> Spring Stater Project name : onetoone-1 SQL : JPA, MySQL 선택 http://ojc.asia/bbs/board.php?bo_table=lecspring&wr_id=524 ( 마리아 DB 설치는위 URL
More informationMicrosoft PowerPoint - aj-lecture6.ppt [호환 모드]
예외처리개요 예외처리및세션과쿠키 524730-1 2019 년봄학기 4/15/2019 박경신 예외처리 프로그램이처리되는동안특정한문제가발생했을때처리를중단하고다른처리를하는것으로오류처리라고도함 웹사이트를이용하다가주소를잘못입력하면오류페이지를보게됨 웹서버가제공하는오류페이지로해당페이지에발생한오류, 디렉터리구조, 톰캣버전등의정보가나타나있기때문에웹보안이취약하여쉽게해킹당할수있음.
More information02 C h a p t e r Java
02 C h a p t e r Java Bioinformatics in J a va,, 2 1,,,, C++, Python, (Java),,, (http://wwwbiojavaorg),, 13, 3D GUI,,, (Java programming language) (Sun Microsystems) 1995 1990 (green project) TV 22 CHAPTER
More information어댑터뷰
04 커스텀어댑터뷰 (Custom Adapter View) 커스텀어댑터뷰 (Custom Adapter View) 커스텀어댑터뷰 (Custom Adatper View) 란? u 어댑터뷰의항목하나는단순한문자열이나이미지뿐만아니라, 임의의뷰가될수 있음 이미지뷰 u 커스텀어댑터뷰설정절차 1 2 항목을위한 XML 레이아웃정의 어댑터정의 3 어댑터를생성하고어댑터뷰객체에연결
More information<4D F736F F F696E74202D203130C0E52EBFA1B7AF20C3B3B8AE205BC8A3C8AF20B8F0B5E55D>
10 장. 에러처리 1. page 지시문을활용한에러처리 page 지시문의 errorpage 와 iserrorpage 속성 errorpage 속성 이속성이지정된 JSP 페이지내에서 Exception이발생하는경우새롭게실행할페이지를지정하기위하여사용 iserrorpage 속성 iserrorpage 는위와같은방법으로새롭게실행되는페이지에지정할속성으로현재페이지가 Exception
More information11 템플릿적용 - Java Program Performance Tuning (김명호기술이사)
Java Program Performance Tuning ( ) n (Primes0) static List primes(int n) { List primes = new ArrayList(n); outer: for (int candidate = 2; n > 0; candidate++) { Iterator iter = primes.iterator(); while
More information목차 JEUS EJB Session Bean가이드 stateful session bean stateful sample 가이드 sample source 결과확인 http session에
개념정리및샘플예제 EJB stateful sample 문서 2016. 01. 14 목차 JEUS EJB Session Bean가이드... 3 1. stateful session bean... 3 1.1 stateful sample 가이드... 3 1.1.1 sample source... 3 1.1.2 결과확인... 6 1.2 http session에서사용하기...
More informationC H A P T E R 2
C H A P T E R 2 Foundations of Ajax Chapter 2 1 32 var xmlhttp; function createxmlhttprequest() { if(window.activexobject) { xmlhttp = new ActiveXObject( Micr else if(window.xmlhttprequest) { xmlhttp =
More informationfundamentalOfCommandPattern_calmglow_pattern_jstorm_1.0_f…
Command JSTORM http://www.jstorm.pe.kr Command Issued by: < > Revision: Document Information Document title: Command Document file name: Revision number: Issued by: Issue
More informationConnection 8 22 UniSQLConnection / / 9 3 UniSQL OID SET
135-080 679-4 13 02-3430-1200 1 2 11 2 12 2 2 8 21 Connection 8 22 UniSQLConnection 8 23 8 24 / / 9 3 UniSQL 11 31 OID 11 311 11 312 14 313 16 314 17 32 SET 19 321 20 322 23 323 24 33 GLO 26 331 GLO 26
More information쉽게 풀어쓴 C 프로그래밍
CHAPTER 7. HTML 와 CSS 로웹사이트만들 기 웹사이트작성 웹사이트구축과정 내비게이션구조도 홈페이지레이아웃 헤더 web Shop 내비게이션메뉴
More information05-class.key
5 : 2 (method) (public) (private) (interface) 5.1 (Method), (public method) (private method) (constructor), 3 4 5.2 (client). (receiver)., System.out.println("Hello"); (client object) (receiver object)
More informationMicrosoft PowerPoint - 웹프로그래밍_ ppt [호환 모드]
목차 웹프로그래밍 내장객체의개요 내장객체의종류 11 주차 7 장 JSP 페이지의내장객체와영역 2 내장객체 (Implicit Object) JSP 페이지에서제공하는특수한레퍼런스타입의변수사용하고자하는변수와메소드에접근선언과객체생성없이사용할수있음 내장객체 내장객체 request response out session application pagecontext page
More informationch09
9 Chapter CHAPTER GOALS B I G J A V A 436 CHAPTER CONTENTS 9.1 436 Syntax 9.1 441 Syntax 9.2 442 Common Error 9.1 442 9.2 443 Syntax 9.3 445 Advanced Topic 9.1 445 9.3 446 9.4 448 Syntax 9.4 454 Advanced
More information12-file.key
11 (String).. java.lang.stringbuffer. s String s = "abcd"; s = s + "e"; a b c d e a b c d e ,., "910359,, " "910359" " " " " (token) (token),, (delimiter). java.util.stringtokenizer String s = "910359,,
More informationthesis
( Design and Implementation of a Generalized Management Information Repository Service for Network and System Management ) ssp@nile nile.postech.ac..ac.kr DPE Lab. 1997 12 16 GMIRS GMIRS GMIRS prototype
More information혼자서일을다하는 JSP. 이젠일을 Servlet 과나눠서한다. JSP와서블릿의표현적인차이 - JSP는 <html> 내에서자바를사용할수있는수단을제공한다. - 서블릿은자바내에서 <html> 을작성할수있는수단을제공한다. - JSP나서블릿으로만웹페이지를작성하면자바와다양한코드가
혼자서일을다하는 JSP. 이젠일을 Servlet 과나눠서한다. JSP와서블릿의표현적인차이 - JSP는 내에서자바를사용할수있는수단을제공한다. - 서블릿은자바내에서 을작성할수있는수단을제공한다. - JSP나서블릿으로만웹페이지를작성하면자바와다양한코드가웹페이지내에뒤섞여있어서웹페이지의화면설계가점점어려워진다. - 서블릿이먼저등장하였으나, 자바내에
More information2파트-07
CHAPTER 07 Ajax ( ) (Silverlight) Ajax RIA(Rich Internet Application) Firefox 4 Ajax MVC Ajax ActionResult Ajax jquery Ajax HTML (Partial View) 7 3 GetOrganized Ajax GetOrganized Ajax HTTP POST 154 CHAPTER
More information5장.key
JAVA Programming 1 (inheritance) 2!,!! 4 3 4!!!! 5 public class Person {... public class Student extends Person { // Person Student... public class StudentWorker extends Student { // Student StudentWorker...!
More information쉽게 풀어쓴 C 프로그래밊
Power Java 제 27 장데이터베이스 프로그래밍 이번장에서학습할내용 자바와데이터베이스 데이터베이스의기초 SQL JDBC 를이용한프로그래밍 변경가능한결과집합 자바를통하여데이터베이스를사용하는방법을학습합니다. 자바와데이터베이스 JDBC(Java Database Connectivity) 는자바 API 의하나로서데이터베이스에연결하여서데이터베이스안의데이터에대하여검색하고데이터를변경할수있게한다.
More informationMulti Channel Analysis. Multi Channel Analytics :!! - (Ad network ) Report! -! -!. Valuepotion Multi Channel Analytics! (1) Install! (2) 3 (4 ~ 6 Page
Multi Channel Analysis. Multi Channel Analytics :!! - (Ad network ) Report! -! -!. Valuepotion Multi Channel Analytics! (1) Install! (2) 3 (4 ~ 6 Page ) Install!. (Ad@m, Inmobi, Google..)!. OS(Android
More informationPowerPoint 프레젠테이션
HTML5 웹프로그래밍입문 부록. 웹서버구축하기 1 목차 A.1 웹서버시스템 A.2 PHP 사용하기 A.3 데이터베이스연결하기 2 A.1 웹서버시스템 3 웹서버의구축 웹서버컴퓨터구축 웹서버소프트웨어설치및실행 아파치 (Apache) 웹서버가대표적 서버실행프로그램 HTML5 폼을전달받아처리 PHP, JSP, Python 등 데이터베이스시스템 서버측에데이터를저장및효율적관리
More informationData Provisioning Services for mobile clients
4 장. JSP 의구성요소와스크립팅요소 제 4 장 스크립팅요소 (Scripting Element) 1) 지시문 (Directive) 1. JSP 구성요소소개 JSP 엔진및컨테이너, 즉 Tomcat 에게현재의 JSP 페이지처리와관련된정보를전달하는목적으로활용 (6 장 )
More informationDialog Box 실행파일을 Web에 포함시키는 방법
DialogBox Web 1 Dialog Box Web 1 MFC ActiveX ControlWizard workspace 2 insert, ID 3 class 4 CDialogCtrl Class 5 classwizard OnCreate Create 6 ActiveX OCX 7 html 1 MFC ActiveX ControlWizard workspace New
More information자바-11장N'1-502
C h a p t e r 11 java.net.,,., (TCP/IP) (UDP/IP).,. 1 ISO OSI 7 1977 (ISO, International Standards Organization) (OSI, Open Systems Interconnection). 6 1983 X.200. OSI 7 [ 11-1] 7. 1 (Physical Layer),
More informationMicrosoft PowerPoint - 04-UDP Programming.ppt
Chapter 4. UDP Dongwon Jeong djeong@kunsan.ac.kr http://ist.kunsan.ac.kr/ Dept. of Informatics & Statistics 목차 UDP 1 1 UDP 개념 자바 UDP 프로그램작성 클라이언트와서버모두 DatagramSocket 클래스로생성 상호간통신은 DatagramPacket 클래스를이용하여
More informationIntro to Servlet, EJB, JSP, WS
! Introduction to J2EE (2) - EJB, Web Services J2EE iseminar.. 1544-3355 ( ) iseminar Chat. 1 Who Are We? Business Solutions Consultant Oracle Application Server 10g Business Solutions Consultant Oracle10g
More informationOOP 소개
OOP : @madvirus, : madvirus@madvirus.net : @madvirus : madvirus@madvirus.net ) ) ) 7, 3, JSP 2 ? 3 case R.id.txt_all: switch (menu_type) { case GROUP_ALL: showrecommend("month"); case GROUP_MY: type =
More information* Factory class for query and DML clause creation * tiwe * */ public class JPAQueryFactory implements JPQLQueryFactory private f
JPA 에서 QueryDSL 사용하기위해 JPAQuery 인스턴스생성방법 http://ojc.asia, http://ojcedu.com 1. JPAQuery 를직접생성하기 JPAQuery 인스턴스생성하기 QueryDSL의 JPAQuery API를사용하려면 JPAQuery 인스턴스를생성하면된다. // entitymanager는 JPA의 EntityManage
More information01-OOPConcepts(2).PDF
Object-Oriented Programming Concepts Tel: 02-824-5768 E-mail: hhcho@selabsoongsilackr? OOP (Object) (Encapsulation) (Message) (Class) (Inheritance) (Polymorphism) (Abstract Class) (Interface) 2 1 + = (Dependency)
More information10.ppt
: SQL. SQL Plus. JDBC. SQL >> SQL create table : CREATE TABLE ( ( ), ( ),.. ) SQL >> SQL create table : id username dept birth email id username dept birth email CREATE TABLE member ( id NUMBER NOT NULL
More informationMicrosoft PowerPoint - 7강.pptx
컴퓨터과학과 김희천교수 학습개요 내장객체 pagecontext, application, out과내장객체의사용범위를의미하는 Scope에대해학습한다. pagecontext 객체는 JSP 페이지에대한정보관리기능을제공한다. application 객체를이용하여웹어플리케이션에대한정보를관리할수있으며 out 객체는 JSP 페이지가생성하는결과를출력할때사용되는스트림기능을수행한다.
More informationSK IoT IoT SK IoT onem2m OIC IoT onem2m LG IoT SK IoT KAIST NCSoft Yo Studio tidev kr 5 SK IoT DMB SK IoT A M LG SDS 6 OS API 7 ios API API BaaS Backend as a Service IoT IoT ThingPlug SK IoT SK M2M M2M
More informationPowerPoint 프레젠테이션
Web server porting 2 Jo, Heeseung Web 을이용한 LED 제어 Web 을이용한 LED 제어프로그램 web 에서데이터를전송받아타겟보드의 LED 를조작하는프로그램을작성하기위해다음과같은소스파일을생성 2 Web 을이용한 LED 제어 LED 제어프로그램작성 8bitled.html 파일을작성 root@ubuntu:/working/web# vi
More informationNetwork seminar.key
Intro to Network .. 2 4 ( ) ( ). ?!? ~! This is ~ ( ) /,,,???? TCP/IP Application Layer Transfer Layer Internet Layer Data Link Layer Physical Layer OSI 7 TCP/IP Application Layer Transfer Layer 3 4 Network
More informationChap12
12 12Java RMI 121 RMI 2 121 RMI 3 - RMI, CORBA 121 RMI RMI RMI (remote object) 4 - ( ) UnicastRemoteObject, 121 RMI 5 class A - class B - ( ) class A a() class Bb() 121 RMI 6 RMI / 121 RMI RMI 1 2 ( 7)
More informationWeek13
Week 13 Social Data Mining 02 Joonhwan Lee human-computer interaction + design lab. Crawling Twitter Data OAuth Crawling Data using OpenAPI Advanced Web Crawling 1. Crawling Twitter Data Twitter API API
More informationNo Slide Title
J2EE J2EE(Java 2 Enterprise Edition) (Web Services) :,, SOAP: Simple Object Access Protocol WSDL: Web Service Description Language UDDI: Universal Discovery, Description & Integration 4. (XML Protocol
More informationCache_cny.ppt [읽기 전용]
Application Server iplatform Oracle9 A P P L I C A T I O N S E R V E R i Improving Performance and Scalability with Oracle9iAS Cache Oracle9i Application Server Cache... Oracle9i Application Server Web
More information자바GUI실전프로그래밍2_장대원.PDF
JAVA GUI - 2 JSTORM http://wwwjstormpekr JAVA GUI - 2 Issued by: < > Document Information Document title: JAVA GUI - 2 Document file name: Revision number: Issued by: Issue Date:
More informationJavascript.pages
JQuery jquery part1 JavaScript : e-mail:leseraphina@naver.com http://www.webhard.co.kr I.? 2 ......,,. : : html5 ; ; .
More information하둡을이용한파일분산시스템 보안관리체제구현
하둡을이용한파일분산시스템 보안관리체제구현 목 차 - 1 - - 2 - - 3 - - 4 - - 5 - - 6 - - 7 - - 8 - 1. 사용자가웹서버에로그인하여다양한서비스 ( 파일업 / 다운로드, 폴더생성 / 삭제 ) 를활용 2. 웹서버와연동된하둡서버에서업 / 다운로드된파일을분산저장. ( 자료송수신은 SSH 활용 ) - 9 - - 10 - - 11 -
More informationModern Javascript
ES6 - Arrow Function Class Template String Destructuring Default, Rest, Spread let, const for..of Promises Module System Map, Set * Generator * Symbol * * https://babeljs.io/ Babel is a JavaScript compiler.
More information뇌를 자극하는 JSP & Servlet 슬라이드
속성 & 리스너 JSP & Servlet 2/39 Contents 학습목표 클라이언트요청에의해서블릿이실행될때에컨테이너에의해제공되는내장객체의종류와역할, 그리고접근범위특성등을알아본다. 웹컴포넌트사이의데이터전달을위한내장객체에서의속성설정과이에따른이벤트처리방법에대해알아본다. 내용 서블릿의초기화환경을표현하는 ServletConfig 객체 웹애플리케이션의실행환경을표현하는
More information<4D F736F F F696E74202D20B5A5C0CCC5CDBAA3C0CCBDBA5F3130C1D6C2F75F31C2F7BDC32E >
Chapter 8 데이터베이스응용개발 목차 사용자인터페이스와도구들 웹인터페이스와데이터베이스 웹기초 Servlet 과 JSP 대규모웹응용개발 ASP.Net 8 장. 데이터베이스응용개발 (Page 1) 1. 사용자인터페이스와도구들 대부분의데이터베이스사용자들은 SQL을사용하지않음 응용프로그램 : 사용자와데이터베이스를연결 데이터베이스응용의구조 Front-end Middle
More informationAPI STORE 키발급및 API 사용가이드 Document Information 문서명 : API STORE 언어별 Client 사용가이드작성자 : 작성일 : 업무영역 : 버전 : 1 st Draft. 서브시스템 : 문서번호 : 단계 : Docum
API STORE 키발급및 API 사용가이드 Document Information 문서명 : API STORE 언어별 Client 사용가이드작성자 : 작성일 : 2012.11.23 업무영역 : 버전 : 1 st Draft. 서브시스템 : 문서번호 : 단계 : Document Distribution Copy Number Name(Role, Title) Date
More information2009년 상반기 사업계획
웹 (WWW) 쉽게배우는데이터통신과컴퓨터네트워크 학습목표 웹서비스를위한클라이언트 - 서버구조를살펴본다. 웹서비스를지원하는 APM(Apache, PHP, MySQL) 의연동방식을이해한다. HTML 이지원하는기본태그명령어와프레임구조를이해한다. HTTP 의요청 / 응답메시지의구조와동작원리를이해한다. CGI 의원리를이해하고 FORM 태그로사용자입력을처리하는방식을알아본다.
More information3장
C H A P T E R 03 CHAPTER 03 03-01 03-01-01 Win m1 f1 e4 e5 e6 o8 Mac m1 f1 s1.2 o8 Linux m1 f1 k3 o8 AJAX
More informationPowerPoint Presentation
Oracle9i Application Server Enterprise Portal Senior Consultant Application Server Technology Enterprise Portal? ERP Mail Communi ty Starting Point CRM EP BSC HR KMS E- Procurem ent ? Page Assembly Portal
More informationMicrosoft PowerPoint - Java7.pptx
HPC & OT Lab. 1 HPC & OT Lab. 2 실습 7 주차 Jin-Ho, Jang M.S. Hanyang Univ. HPC&OT Lab. jinhoyo@nate.com HPC & OT Lab. 3 Component Structure 객체 (object) 생성개념을이해한다. 외부클래스에대한접근방법을이해한다. 접근제어자 (public & private)
More informationuntitled
- -, (insert) (delete) - - (insert) (delete) (top ) - - (insert) (rear) (delete) (front) A A B top A B C top push(a) push(b) push(c) A B top pop() top A B D push(d) top #define MAX_STACK_SIZE 100 int
More information1217 WebTrafMon II
(1/28) (2/28) (10 Mbps ) Video, Audio. (3/28) 10 ~ 15 ( : telnet, ftp ),, (4/28) UDP/TCP (5/28) centralized environment packet header information analysis network traffic data, capture presentation network
More informationWeb Service Computing
Spring MVC 2015 Web Service Computing Request & Response HTTP(Hyper-Text Transfer Protocol) 웹서버가하는일은요청 (Request) 과응답 (Response) 의연속이다. 1) 브라우저에 www.google.co.kr 을입력한다면 2) 구글서버에페이지를요청하는것이고 3) 화면이잘나타난다면구글서버가응답을한것이다.
More informationmytalk
한국정보보호학회소프트웨어보안연구회 총괄책임자 취약점분석팀 안준선 ( 항공대 ) 도경구 ( 한양대 ) 도구개발팀도경구 ( 한양대 ) 시큐어코딩팀 오세만 ( 동국대 ) 전체적인 그림 IL Rules Flowgraph Generator Flowgraph Analyzer 흐름그래프 생성기 흐름그래프 분석기 O parser 중간언어 O 파서 RDL
More information1
1 1....6 1.1...6 2. Java Architecture...7 2.1 2SDK(Software Development Kit)...8 2.2 JRE(Java Runtime Environment)...9 2.3 (Java Virtual Machine, JVM)...10 2.4 JVM...11 2.5 (runtime)jvm...12 2.5.1 2.5.2
More information국어부록표지
초등학교 국어 기초학습 프로그램 초등학교 국어 기초학습 프로그램 1권 한글 익히기 신나는 한글 놀이를 시작해요 5 1. 선을 그려요`(선 긋기) 6 2. 아야야!`(기본 모음 익히기) 11 이 동물의 이름은 무엇까요? 21 1. 구구구, 비둘기야`(자음 ㄱ, ㄴ 익히기) 22 2. 동동, 아기 오리야`(자음 ㄷ, ㄹ 익히기) 31 3. 아야, 모기야`(자음
More information