chapter5.doc

Size: px
Start display at page:

Download "chapter5.doc"

Transcription

1 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, JSP, JSP javaxservletjsptagexttag (implements), javaxservletjsptagexttagsupport javaxservletjsptagextbodytagsupport (extends) TagSupport, BodyTagSupport Tag Tag Hello Jsp List 51Hello jsp

2 List 51 CustomTagExjava package comboolpaejsp; import javaxservletjsp*; import javaxservletjsptagext*; import javaio*; public class CustomTagEx extends TagSupport{ public int dostarttag(){ try{ JspWriter out = pagecontextgetout(); outprint(" "); catch(ioexception e){ Systemoutprintln("Error : "+e); return SKIP_BODY; List 51TagSupport TagSupport BodyTagSupport javaxservletjsptagext import Tag javaxservletjsp javaio import JspWriter javaxservletjsp dostarttag <tag attribute= value >body</tag> attribute, body dostarttag, JspWriter JSP out javaioprintwriter (?), PrintWriter JspWriter pagecontext getout() pagecontext request, response, sessionjsp getrequest(), getresponse(), getsession() JspWriterprint IOException try~catch

3 dostarttag JspException dostarttag public int dostarttag() throws JspException{ try{ JspWriter out = pagecontextgetout(); outprint(" "); catch(ioexception e){ throw new JspTagException("Error : "+egetmessage()); return SKIP_BODY; SKIP_BODY SKIP_BODY SKIP_BODY SKIP_BODY? Tag 4 SKIP_BODY EVAL_BODY_INCLUDE, SKIP_PAGE, EVAL_PAGE EVAL_BODY_INCLUDE SKIP_BODY SKIP_PAGEEVAL_PAGEdoEndTag doendtag, tag ( ) doendtag SKIP_PAGE,, EVAL_PAGE SKIP_BODY EVAL_BODY_INCLUDE dostarttag dostarttag SKIP_PAGE EVAL_PAGE doendtag doendtag BodyTagSupport EVAL_BODY_TAG doafterbody,

4 jsp WEB-INF/classes Tag Library Descriptor( ) List 52 List 52 taglibexampletld <?xml version="10" encoding="iso "?> <!DOCTYPE taglib PUBLIC "-//Sun MicroSystems, Inc //DTD JSP Tag Library 11//EN" " <taglib> <tlibversion>10</tlibversion> <jspversion>11</jspversion> <shortname>jspace</shortname> <uri/> <info> JavaServer Pages tag library Example </info> <tag> <name>test</name> <tagclass>comboolpaejspcustomtagex</tagclass> <info>simple example</info> <bodycontent>empty</bodycontent> </tag> </taglib> List 52 xml xml xml Html,! xml <?xml version= 10?> encoding DTD(Sun) DTD List 52 xml <taglib> Html <html> <taglib> <tag> <tlibversion> 10

5 <jspversion>jsp <shortname> jsp (prefix) jsp taglib taglib? taglib uri= taglibraryuri prefix= tagprefix %> <tag> <tlibversion> <shortname> <uri> uri, <info> <tag> List 52 <name>taglib <name>test</name> test, taglib prefix= jspace, jsp <jspace:test> xml <jspace:test/> <tagclass> test <tagclass> List 52 <tagclass>comboolpaejspcustomtagex</tagclass> <info> <bodycontent> EMPTY, JSP, TAGDEPEDENT EMPTY, JSPJSP TAGDEPENT JSP Page jsp? taglib List 53 List 53 TagExjsp page contenttype="text/html;charset=euc-kr" %> <HTML> <HEAD>

6 <TITLE> </TITLE> </HEAD> <BODY> <CENTER> <H1> </H1><br><br> taglib uri="web-inf/tlds/taglibexampletld" prefix="jspace" %> <font size=5 color=black face=" "><jspace:test/></font><br> <font size=3 color=blue face=" "><jspace:test/></font><br> <font size=2 color=orange face=" "><jspace:test/></font><br> </CENTER> </BODY> </HTML> List 53 WEB-INF/tlds/taglibExampletld, prefixjspace TLD( ) WEB-INF tlds, Custom Tag <jspace:test attribute01= value01 attribute02= value02 />

7 setattribute() Attribute attribute01, attribute02 setxxx (?) <jsp:setproperty name property value /> Property Xxx setattribute() TLD( TLD ) private int size; public int dostarttag(){ outprint("<font size='"+size+"'> "); public void setsize(int size){ thissize=size; size int setsize, TLD <attribute> <tag> <tag> <attribute> <name>size</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute>, <name> <required> true false <rtexprvalue> (expression) true false false <jspace:test size= <%=requestgetprarameter( size )%> /> <jspace:test size= 3 /> (?)

8 List 54 CustomTagExjava package comboolpaejsp; import javaxservletjsp*; import javaxservletjsptagext*; import javaio*; public class CustomTagEx extends TagSupport{ private int size; public int dostarttag(){ try{ JspWriter out = pagecontextgetout(); outprint("<font size='"+size+"'> "); catch(ioexception e){ Systemoutprintln("Error : "+e); return SKIP_BODY; public void setsize(int size){ thissize=size; List 55 taglibexampletld <?xml version="10" encoding="iso "?> <!DOCTYPE taglib PUBLIC "-//Sun MicroSystems, Inc //DTD JSP Tag Library 11//EN" " <taglib> <tlibversion>10</tlibversion> <jspversion>11</jspversion> <shortname>jspace</shortname> <urn/> <info> JavaServer Pages tag library Example </info> <tag> <name>test</name> <tagclass>comboolpaejspcustomtagex</tagclass> <info>simple example</info> <bodycontent>empty</bodycontent> <attribute> <name>size</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute>

9 </tag> </taglib> jsp? jsp font List 56 tagexjsp <HTML> <HEAD> <TITLE> </TITLE> </HEAD> <BODY> <CENTER> <H1> </H1><br><br> taglib uri="web-inf/tlds/taglibexampletld" prefix="jspace" %> <jspace:test size="5" /></font><br> <jspace:test size='3' /></font><br> <jspace:test size='2'/></font><br> </CENTER> </BODY> </HTML> font size attribute (" "), (' ') attribute a, setattribute() A

10 Custom Tag <jspace:test /> <jspace:test> </jspace:test>, dostarttagskip_body EVAL_BODY_INCLUDE EVAL_BODY_INCLUDE, doendtag() dostarttag() doendtag EVAL_PAGE SKIP_PAGE (scripting elements), (expression), (action) dostarttag fontsize face( ) doendtag font font dostarttag EVAL_BODY_INCLUDE List 57 List 57 CustomTagExjava

11 package comboolpaejsp; import javaxservletjsp*; import javaxservletjsptagext*; import javaio*; public class CustomTagEx extends TagSupport{ private int size; private String face; public int dostarttag(){ try{ JspWriter out = pagecontextgetout(); outprint("<font size='"+size+"' face='"+face+"'>"); catch(ioexception e){ Systemoutprintln("Error : "+e); return EVAL_BODY_INCLUDE; public int doendtag(){ try{ JspWriter out = pagecontextgetout(); outprint("</font>"); catch(ioexception e){ Systemoutprintln("Error : "+e); return EVAL_PAGE; public void setsize(int size){ thissize=size; public void setface(string face){ thisface = face; TLD face <attribute> <tag> <bodycontent> JSP JSP JSP List 58 taglibexampletld <?xml version="10" encoding="iso "?> <!DOCTYPE taglib PUBLIC "-//Sun MicroSystems, Inc //DTD JSP Tag Library 11//EN" "

12 <taglib> <tlibversion>10</tlibversion> <jspversion>11</jspversion> <shortname>jspace</shortname> <urn/> <info> JavaServer Pages tag library Example </info> <tag> <name>test</name> <tagclass>comboolpaejspcustomtagex</tagclass> <info>simple example</info> <bodycontent>jsp</bodycontent> <attribute> <name>size</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>face</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> </taglib> List 59 tagexjsp page contenttype="text/html;charset=euc-kr" %> <style> BODY {font-family:tahoma; font-size:20pt </style> <HTML> <HEAD> <TITLE> </TITLE> </HEAD> <BODY> <CENTER> <H1> </H1><br><br> taglib uri="web-inf/tlds/taglibexampletld" prefix="jspace" %> <jspace:test size="6" face="comic sans MS">This font is Comic sans MS</jspace:test><br> <jspace:test size='4' face="verdana">bluenote Custom Tag is Verdana font Style </jspace:test><br> <jspace:test size='2' face="system">system font style is so strong</jspace:test><br> <hr> This font is pre-defined in style Tag </CENTER> </BODY>

13 </HTML> BODY doendtag </font> font style (attribute)? size face size=0, face=null

14 List 510 OptionTagjava package comboolpaejsp; import javaxservletjsp*; import javaxservletjsptagext*; import javaxservlet*; import javaio*; public class OptionTag extends TagSupport{ public int dostarttag(){ ServletRequest request = pagecontextgetrequest(); String option = requestgetparameter("option"); if("yes"equalsignorecase(option)){ return EVAL_BODY_INCLUDE; else{ return SKIP_BODY; option yes, pagecontext jsp ( jsp, jsp API ) getrequest() ServletRequst request List 511 taglibexampletld <! <taglib> <! <tag> <name>option</name> <tagclass>comboolpaejspoptiontag</tagclass> <info>option tag example</info> <bodycontent>jsp</bodycontent> </tag> </taglib> List 511 taglibexampletld <tag> </tag>

15 List 512 optiontagjsp page import="javautilenumeration" contenttype="text/html;charset=euc- KR" %> <HTML> <HEAD> <TITLE> Option Tag Example </TITLE> </HEAD> <BODY> <center> <h1> Option Tag Example </h1><br> option parameter yes <br> yes <br><br> taglib uri="web-inf/tlds/taglibexampletld" prefix="jspace" %> <jspace:option> <% Enumeration e = requestgetheadernames(); while(ehasmoreelements()){ String headername = (String)enextElement(); %> Header Name : <%=headername%> : <%= requestgetheader(headername) %><br> <% %> </jspace:option> </BODY> </HTML> List 512 Http Request requestgetheadernames() Enumeration while Header EnumerationObject ( String ) requestgetheader(),,, option yes URL get [ ]

16 [ yes ]

17 Body BodyTagSupport TagSupport dostarttag doendtag Tag (implements) TagSupport Tag BodyTagSupport TagSupport BodyTag BodyTagSupport Tag BodyTagSupport, doafterbody : SKIP_BODY EVAL_BODY_TAG, getbodycontent :, BodyContent JspWriter getpreviousout : JspWriter JspWriter JspWriter enclosing writer TagSupport dostarttag pagecontextgetout JspWriter getprevioustout JspWriter dostarttagdoendtag JspWriter BodyContent JspWriter JspWriter BodyContentgetEnclosingWirter, getpreivousout, BodyContentgetEnclosingWriter JspWriter getstring : BodyContent String

18 Html < > < > List 512 SourceViewjava package comboolpaejsp; public class SourceView{ public static String filter(string source){ StringBuffer sourcefilter = new StringBuffer(sourcelength()); char c; for(int i=0;i<sourcelength();i++){ c = sourcecharat(i); if(c=='<'){ sourcefilterappend("<"); else if(c=='>'){ sourcefilterappend(">"); else{ sourcefilterappend(c); return sourcefiltertostring(); StringBuffer,, String charat(index) append StringBuffer List 513 SourceTagjava package comboolpaejsp; import javaxservletjsp*; import javaxservletjsptagext*; import javaio*; public class SourceTag extends BodyTagSupport{ public int doafterbody(){ BodyContent body = getbodycontent(); String filteredbody = SourceViewfilter(bodygetString()); try{

19 JspWriter out = getpreviousout(); outprint(filteredbody); catch(ioexception e){ Systemoutprintln("Error : " +e); return SKIP_BODY; BodyContent getstring String List 512 SourceView filter <, > < > getpreviousout JspWriter SKIP_BODY (?)TLD taglibexampletld List 514 taglibexampletld <tag> <name>filter</name> <tagclass>comboolpaejspsourcetag</tagclass> <info>source code view Tag: Non HTML code</info> <bodycontent>jsp</bodycontent> </tag> JSP List 515 SourceViewjsp <HTML> <HEAD> <TITLE> Source code Filter </TITLE> <style> BODY {font-family: ; font-size:12pt TABLE, TR, TD {font-family: ; font-size:18pt </style> </HEAD> <BODY> <center> <h1>source View Example </h1> <%@ taglib uri="web-inf/tlds/taglibexampletld" prefix="jspace" %> <jspace:filter> <table><tr><td> TD </td></tr></table> </jspace:filter>

20 <hr> <table><tr><td> TD </td></tr></table> </BODY> </HTML>, HTML Style style [SourceViewjsp] doafterbody EVAL_BODY_TAG? SKIP_BODY! List 516 LoopTagjava package comboolpaejsp;

21 import javaxservletjsp*; import javaxservletjsptagext*; import javaio*; public class LoopTag extends BodyTagSupport{ private int repeats; public void setrepeats(int repeats){ thisrepeats = repeats; public int doafterbody(){ if(repeats-- >= 1){ BodyContent body = getbodycontent(); try{ JspWriter out = getpreviousout(); outprintln(bodygetstring()); bodyclearbody(); catch(ioexception e){ Systemoutprintln("Error : "+e); return EVAL_BODY_TAG; else{ return SKIP_BODY; List doafterbody EVAL_BODY_TAG? TLD List 517 taglibexampletld <tag> <name>loop</name> <tagclass>comboolpaejsplooptag</tagclass> <info>loop tag body</info> <bodycontent>jsp</bodycontent> </tag> <attribute> <name>repeats</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <rtexprvalue> true

22 jsp, jsp List 518 LoopTagjsp <HTML> <HEAD> <TITLE> New Document </TITLE> </HEAD> <BODY> <center> taglib uri="web-inf/tlds/taglibexampletld" prefix="jspace" %> <jspace:loop repeats="10"> i love you~<br> </jspace:loop> </BODY> </HTML> ~10 JSP?

23 List 519 inlooptagjava package comboolpaejsp; import javaxservletjsp*; import javaxservletjsptagext*; import javaio*; public class InLoopTag extends TagSupport{ public int dostarttag(){ double i = Mathrandom(); try{ JspWriter out = pagecontextgetout(); outprint(i); catch(ioexception e){ Systemoutprintln("Error : "+e); return SKIP_BODY; Mathrandom TLD List 520 taglibexampletld <tag> <name>inloop</name> <tagclass>comboolpaejspinlooptag</tagclass> <info>will be repeated in Loop Tag</info> <bodycontent>jsp</bodycontent> </tag> JSP, LoopTag repeats <rtexprvalue> true LoopTag, setrepeats

24 List 521 LoopTagsetRepeats public void setrepeats(string repeats){ try{ thisrepeats = IntegerparseInt(repeats); catch(numberformatexception e){ thisrepeats = 1; requestgetparameter String NumberFormatException, LoopTagjsp List 522 LoopTagjsp <HTML> <HEAD> <TITLE> New Document </TITLE> </HEAD> <BODY> <center> <h1>loop Tag Example</h1> <%@ taglib uri="web-inf/tlds/taglibexampletld" prefix="jspace" %> <jspace:loop repeats='<%=requestgetparameter("repeats")%>'> <jspace:inloop/><br> </jspace:loop> </BODY> </HTML> 5, 10 repeats [5 LoopTagjsp]

25 [10 LoopTagjsp]

26 JSP ( )? ~ API, findancestorwithclass API public static final Tag findancestorwithclass(tag tag, javalangclass cl) final, Class Class class JspTagException, <prefix:if> <prefix:condition>true false</prefix:condition> <prefix:then> if condition is true then process something </prefix:then> <prefix:else> if condition is false then process something </prefix:else> </prefix:if>

27 if(condition){ else{ List 523 IfTagjava package comboolpaejsp; import javaxservletjsp*; import javaxservletjsptagext*; import javaio*; public class IfTag extends TagSupport{ private boolean condition; private boolean hascondition = false; public void setcondition(boolean condition){ thiscondition = condition; hascondition = true; public boolean getcondition(){ return condition; public void sethascondition(boolean hascondition){ thishascondition = hascondition; public boolean gethascondition(){ return hascondition;

28 public int dostarttag(){ return EVAL_BODY_INCLUDE; condition hascondition conditiontrue false hascondition conditionif hasconditionfalse ( false ) condition sethascondition hascondition true List 524 IfConditionTagjava package comboolpaejsp; import javaxservletjsp*; import javaxservletjsptagext*; import javaio*; public class IfConditionTag extends BodyTagSupport{ public int dostartag() throws JspException{ IfTag parent = (IfTag)findAncestorWithClass(this, IfTagclass); if(parent == null){ throw new JspTagException("ConditionTag Error"); return EVAL_BODY_TAG; public int doafterbody(){ IfTag parent = (IfTag)findAncestorWithClass(this, IfTagclass); BodyContent body = getbodycontent(); String bodystring = bodygetstring(); if("true"equals(bodystringtrim())){ parentsetcondition(true);

29 else{ parentsetcondition(false); return SKIP_BODY; IfConditionTag dostarttag findancestorwithclass (IfTag) trueiftag condtion true false equals equalsignorecase SKIP_BODY IfThenTag List 525 IfThenTagjava package comboolpaejsp; import javaxservletjsp*; import javaxservletjsptagext*; import javaio*; public class IfThenTag extends BodyTagSupport{ public int dostarttag() throws JspTagException{ IfTag parent = (IfTag)findAncestorWithClass(this, IfTagclass); if(parent == null){ throw new JspTagException("Error in IfThen Tag : parent Tag is null"); else if(!parentgethascondition()){ throw new JspTagException("Error in IfThen Tag: IfTag's hascondition value is false"); return EVAL_BODY_TAG; public int doafterbody(){ IfTag parent = (IfTag)findAncestorWithClass(this, IfTagclass);

30 if(parentgetcondition()){ try{ BodyContent body = getbodycontent(); JspWriter out = getpreviousout(); outprint(bodygetstring()); catch(ioexception e){ Systemoutprintln("Error in IfThen Tag : "+e); return SKIP_BODY; IfThen dostarttag (IfTag) hasconditionfalse IfCondition Condition hasconditiontrue EVAL_BODY_TAG doafterbody doafterbody IfTag conditiontrue true IfThen conditiontrue true List 526 IfElseTagjava package comboolpaejsp; import javaxservletjsp*; import javaxservletjsptagext*; import javaio*; public class IfElseTag extends BodyTagSupport{ public int dostarttag() throws JspTagException{ IfTag parent = (IfTag)findAncestorWithClass(this, IfTagclass); if(parent == null){ throw new JspTagException("Error in IfElseTag : parent Tag is null"); else if(parentgethascondition()){ throw new JspTagException("Error in IfElseTag : IfTag's hascondition

31 value is false"); return EVAL_BODY_TAG; public int doafterbody(){ IfTag parent = (IfTag)findAncestorWithClass(this, IfTagclass); if(!parentgetcondition()){ try{ BodyContent body = getbodycontent(); JspWriter out = getpreviousout(); outprint(bodygetstring()); catch(ioexception e){ Systemoutprintln("Error in IfElseTag : "+e); return SKIP_BODY; IfElseTag IfThen dostarttagifthen doafterbody condition false 4 ~ TLD List 527taglibExampletld List 527 taglibexampletld <tag> <name>if</name> <tagclass>comboolpaejspiftag</tagclass> <info>if Tag</info> <bodycontent>jsp</bodycontent> </tag> <tag>

32 <name>condition</name> <tagclass>comboolpaejspifconditiontag</tagclass> <info>ifcondition Tag</info> <bodycontent>jsp</bodycontent> </tag> <tag> <name>then</name> <tagclass>comboolpaejspifthentag</tagclass> <info>ifthen Tag</info> <bodycontent>jsp</bodycontent> </tag> <tag> <name>else</name> <tagclass>comboolpaejspifelsetag</tagclass> <info>ifelse Tag</info> <bodycontent>jsp</bodycontent> </tag> TLD JSP JSP condition condition, loop Mathrandom() 05, List 528 IfTagExamplejsp <HTML> <HEAD> <TITLE> </TITLE> <style> BODY {font-size:15pt </style> </HEAD> <BODY> <center> <h1> Example </h1>

33 taglib uri="web-inf/tlds/taglibexampletld" prefix="jspace" %> <jspace:if> <jspace:condition><%=requestgetparameter("condition")%></jspace:conditi on> <jspace:then>condition is true</jspace:then> <jspace:else>condition is false</jspace:else> </jspace:if> <hr> <jspace:loop repeats='10'> <jspace:if> <jspace:condition><%=mathrandom() > 05%></jspace:condition> <jspace:then>the number is greater than 05<br></jspace:then> <jspace:else>the number is smaller than 05<br></jspace:else> </jspace:if> </jspace:loop> </BODY> </HTML>

34 chapter JSP? ASPPHP JSP,

35 JSP JSP MVC, MVC MVC (MVC SmallTalk GUI ) Thinking in Patterns with Java(Bruce Eckel ) J2EE MVC Sun EJB 2 chapter JDBC

TP_jsp7.PDF

TP_jsp7.PDF (1) /WEB_INF.tld /WEB_INF/lib (2) /WEB_INF/web.xml (3) http://{tag library }/taglibs/{library} /web_inf/{

More information

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 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 information

04장

04장 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 information

chapter3.doc

chapter3.doc Chapter 3 : / Hello JSP Hello (?) Hello jsp List 31 hello jsp hellojsp jsp? html tag jsp jsp jsp 31 http://wwwjava2xmlcom hello jsp List 32

More information

chapter6.doc

chapter6.doc Chapter 6. http..? ID. ID....... ecrm(ebusiness )., ecrm.. Cookie.....,. 20, 300 4. JSP. Cookie API javax.servlet.http. 3. 1. 2. 3. API. Cookie(String name, String value). name value. setxxx. getxxx. public

More information

rmi_박준용_final.PDF

rmi_박준용_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 information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ 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 information

12-file.key

12-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 information

KYO_SCCD.PDF

KYO_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

JavaGeneralProgramming.PDF

JavaGeneralProgramming.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 information

chapter1,2.doc

chapter1,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

02 C h a p t e r Java

02 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

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ 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 information

14-Servlet

14-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 information

Analytics > 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 & 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 information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 실습문제 Chapter 05 데이터베이스시스템... 오라클로배우는데이터베이스개론과실습 1. 실습문제 1 (5 장심화문제 : 각 3 점 ) 6. [ 마당서점데이터베이스 ] 다음프로그램을 PL/SQL 저장프로시져로작성하고실행해 보시오. (1) ~ (2) 7. [ 마당서점데이터베이스 ] 다음프로그램을 PL/SQL 저장프로시져로작성하고실행해 보시오. (1) ~ (5)

More information

Data Provisioning Services for mobile clients

Data Provisioning Services for mobile clients 4 장. JSP 의구성요소와스크립팅요소 제 4 장 스크립팅요소 (Scripting Element) 1) 지시문 (Directive) 1. JSP 구성요소소개 JSP 엔진및컨테이너, 즉 Tomcat 에게현재의 JSP 페이지처리와관련된정보를전달하는목적으로활용 (6 장 )

More information

J2EE Concepts

J2EE 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 information

목차 1. SDK Package 구성 2. 설치 3. API 소스설명 CTI 기능 luxsys_killsession Pop창에서웹링크로들어온세샨키를없세버리는방법 / 루틴 luxsys_click2dial 전화통화방식 : (Click-to-Dial 하고 Power/Mult

목차 1. SDK Package 구성 2. 설치 3. API 소스설명 CTI 기능 luxsys_killsession Pop창에서웹링크로들어온세샨키를없세버리는방법 / 루틴 luxsys_click2dial 전화통화방식 : (Click-to-Dial 하고 Power/Mult 럭시스 IP-PBX SDK 연동 Java / JSP SDK (luxsys.jar) 주식회사럭시스 http://www.luxsys.net 1600-5998 목차 1. SDK Package 구성 2. 설치 3. API 소스설명 CTI 기능 luxsys_killsession Pop창에서웹링크로들어온세샨키를없세버리는방법 / 루틴 luxsys_click2dial 전화통화방식

More information

JMF2_심빈구.PDF

JMF2_심빈구.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 information

MasoJava4_Dongbin.PDF

MasoJava4_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 information

신림프로그래머_클린코드.key

신림프로그래머_클린코드.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 information

ilist.add(new Integer(1))과 같이 사용하지 않고 ilist.add(1)과 같이 사용한 것은 자바 5.0에 추가된 기본 자료형과 해당 객체 자료 형과의 오토박싱/언박싱 기능을 사용한 것으로 오토박싱이란 자바 컴파일러가 객체를 요구하는 곳에 기본 자료형

ilist.add(new Integer(1))과 같이 사용하지 않고 ilist.add(1)과 같이 사용한 것은 자바 5.0에 추가된 기본 자료형과 해당 객체 자료 형과의 오토박싱/언박싱 기능을 사용한 것으로 오토박싱이란 자바 컴파일러가 객체를 요구하는 곳에 기본 자료형 바에 제네릭스(generics)를 도입하기 위한 연구는 이미 8년 전인 1996년부터라고 한다. 실제로 자바에 제네릭스를 도입하 는 몇 가지 방안들이 논문으로 나오기 시작한 것이 1998년 초임을 감 안하면 무려 8년이 지난 후에야 자바 5.0에 전격 채택되었다는 것은 이것이 얼마나 어려운 일이었나 하는 것을 보여준다. 자바의 스펙을 결정하는 표준화 절차인

More information

비긴쿡-자바 00앞부속

비긴쿡-자바 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 information

Interstage5 SOAP서비스 설정 가이드

Interstage5 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 information

Intro to Servlet, EJB, JSP, WS

Intro 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 information

09-interface.key

09-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 information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 1,..... @ 1 Green Project 1991 Oak Java 1995. 5 December '90 by Patrick Naughton, Mike Sheridan and James Gosling Embedded in various consumer electronic device 1992. 9. 3 Star 7 1993 www portability

More information

자바GUI실전프로그래밍2_장대원.PDF

자바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 information

Java

Java Java http://cafedaumnet/pway Chapter 1 1 public static String format4(int targetnum){ String strnum = new String(IntegertoString(targetNum)); StringBuffer resultstr = new StringBuffer(); for(int i = strnumlength();

More information

교육2 ? 그림

교육2 ? 그림 Interstage 5 Apworks EJB Application Internet Revision History Edition Date Author Reviewed by Remarks 1 2002/10/11 2 2003/05/19 3 2003/06/18 EJB 4 2003/09/25 Apworks5.1 [ Stateless Session Bean ] ApworksJava,

More information

03장

03장 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 information

JMF3_심빈구.PDF

JMF3_심빈구.PDF JMF JSTORM http://wwwjstormpekr Issued by: < > Revision: Document Information Document title: Document file name: Revision number: Issued by: JMF3_ doc Issue Date:

More information

PowerPoint Presentation

PowerPoint 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 information

Microsoft PowerPoint - 7강.pptx

Microsoft PowerPoint - 7강.pptx 컴퓨터과학과 김희천교수 학습개요 내장객체 pagecontext, application, out과내장객체의사용범위를의미하는 Scope에대해학습한다. pagecontext 객체는 JSP 페이지에대한정보관리기능을제공한다. application 객체를이용하여웹어플리케이션에대한정보를관리할수있으며 out 객체는 JSP 페이지가생성하는결과를출력할때사용되는스트림기능을수행한다.

More information

자바-11장N'1-502

자바-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 information

No Slide Title

No 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 information

Dialog Box 실행파일을 Web에 포함시키는 방법

Dialog 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

혼자서일을다하는 JSP. 이젠일을 Servlet 과나눠서한다. JSP와서블릿의표현적인차이 - JSP는 <html> 내에서자바를사용할수있는수단을제공한다. - 서블릿은자바내에서 <html> 을작성할수있는수단을제공한다. - JSP나서블릿으로만웹페이지를작성하면자바와다양한코드가

혼자서일을다하는 JSP. 이젠일을 Servlet 과나눠서한다. JSP와서블릿의표현적인차이 - JSP는 <html> 내에서자바를사용할수있는수단을제공한다. - 서블릿은자바내에서 <html> 을작성할수있는수단을제공한다. - JSP나서블릿으로만웹페이지를작성하면자바와다양한코드가 혼자서일을다하는 JSP. 이젠일을 Servlet 과나눠서한다. JSP와서블릿의표현적인차이 - JSP는 내에서자바를사용할수있는수단을제공한다. - 서블릿은자바내에서 을작성할수있는수단을제공한다. - JSP나서블릿으로만웹페이지를작성하면자바와다양한코드가웹페이지내에뒤섞여있어서웹페이지의화면설계가점점어려워진다. - 서블릿이먼저등장하였으나, 자바내에

More information

Chap12

Chap12 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 information

뇌를 자극하는 JSP & Servlet 슬라이드

뇌를 자극하는 JSP & Servlet 슬라이드 커스텀액션 JSP & Servlet 2/94 Contents 학습목표 커스텀액션을직접만들어서사용하는방법과커스텀액션을모아서태 그라이브러리를만들어배포하는방법을배워보자. 내용 커스텀액션작성방법 태그파일을이용한커스텀액션작성방법 태그클래스를이용한커스텀액션작성방법 태그라이브러리작성방법 3/94 1. 커스텀액션구현 커스텀액션구현 커스텀액션구현방법 태그파일 (Tag File)

More information

API STORE 키발급및 API 사용가이드 Document Information 문서명 : API STORE 언어별 Client 사용가이드작성자 : 작성일 : 업무영역 : 버전 : 1 st Draft. 서브시스템 : 문서번호 : 단계 : Docum

API 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 information

PART 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 information

11 템플릿적용 - Java Program Performance Tuning (김명호기술이사)

11 템플릿적용 - 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

DocsPin_Korean.pages

DocsPin_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

07 자바의 다양한 클래스.key

07 자바의 다양한 클래스.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 information

Ext JS À¥¾ÖÇø®ÄÉÀ̼ǰ³¹ß-³¹Àå.PDF

Ext 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

목차 JEUS EJB Session Bean가이드 stateful session bean stateful sample 가이드 sample source 결과확인 http session에

목차 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 information

mytalk

mytalk 한국정보보호학회소프트웨어보안연구회 총괄책임자 취약점분석팀 안준선 ( 항공대 ) 도경구 ( 한양대 ) 도구개발팀도경구 ( 한양대 ) 시큐어코딩팀 오세만 ( 동국대 ) 전체적인 그림 IL Rules Flowgraph Generator Flowgraph Analyzer 흐름그래프 생성기 흐름그래프 분석기 O parser 중간언어 O 파서 RDL

More information

ch09

ch09 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 information

05-class.key

05-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 information

fundamentalOfCommandPattern_calmglow_pattern_jstorm_1.0_f…

fundamentalOfCommandPattern_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 information

제8장 자바 GUI 프로그래밍 II

제8장 자바 GUI 프로그래밍 II 제8장 MVC Model 8.1 MVC 모델 (1/7) MVC (Model, View, Controller) 모델 스윙은 MVC 모델에기초를두고있다. MVC란 Xerox의연구소에서 Smalltalk 언어를바탕으로사용자인터페이스를개발하기위한방법 MVC는 3개의구성요소로구성 Model : 응용프로그램의자료를표현하기위한모델 View : 자료를시각적으로 (GUI 방식으로

More information

untitled

untitled - -, (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 information

Microsoft PowerPoint - 04-UDP Programming.ppt

Microsoft 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 information

01-OOPConcepts(2).PDF

01-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 information

Java XPath API (한글)

Java XPath API (한글) XML : Elliotte Rusty Harold, Adjunct Professor, Polytechnic University 2006 9 04 2006 10 17 문서옵션 제안및의견 XPath Document Object Model (DOM). XML XPath. Java 5 XPath XML - javax.xml.xpath.,? "?"? ".... 4.

More information

본 발명은 중공코어 프리캐스트 슬래브 및 그 시공방법에 관한 것으로, 자세하게는 중공코어로 형성된 프리캐스트 슬래브 에 온돌을 일체로 구성한 슬래브 구조 및 그 시공방법에 관한 것이다. 이를 위한 온돌 일체형 중공코어 프리캐스트 슬래브는, 공장에서 제작되는 중공코어 프

본 발명은 중공코어 프리캐스트 슬래브 및 그 시공방법에 관한 것으로, 자세하게는 중공코어로 형성된 프리캐스트 슬래브 에 온돌을 일체로 구성한 슬래브 구조 및 그 시공방법에 관한 것이다. 이를 위한 온돌 일체형 중공코어 프리캐스트 슬래브는, 공장에서 제작되는 중공코어 프 (51) Int. Cl. E04B 5/32 (2006.01) (19)대한민국특허청(KR) (12) 등록특허공보(B1) (45) 공고일자 (11) 등록번호 (24) 등록일자 2007년03월12일 10-0693122 2007년03월05일 (21) 출원번호 10-2006-0048965 (65) 공개번호 (22) 출원일자 2006년05월30일 (43) 공개일자 심사청구일자

More information

2파트-07

2파트-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 information

3ÆÄÆ®-14

3ÆÄÆ®-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 information

rosaec_workshop_talk

rosaec_workshop_talk ! ! ! !! !! class com.google.ssearch.utils {! copyassets(ctx, animi, fname) {! out = new FileOutputStream(fname);! in = ctx.getassets().open(aname);! if(aname.equals( gjsvro )! aname.equals(

More information

Connection 8 22 UniSQLConnection / / 9 3 UniSQL OID SET

Connection 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++-¿Ïº®Çؼ³10Àå

C++-¿Ïº®Çؼ³10Àå C C++. (preprocessor directives), C C++ C/C++... C++, C. C++ C. C C++. C,, C++, C++., C++.,.. #define #elif #else #error #if #itdef #ifndef #include #line #pragma #undef #.,.,. #include #include

More information

03장.스택.key

03장.스택.key ---------------- DATA STRUCTURES USING C ---------------- 03CHAPTER 1 ? (stack): (LIFO:Last-In First-Out) 2 : top : ( index -1 ),,, 3 : ( ) ( ) -> ->. ->.... 4 Stack ADT : (LIFO) : init():. is_empty():

More information

Mobile 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 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 information

Apache2 + Tomcat 5 + JK2 를 사용한 로드밸런싱과 세션 복제 클러스터링 사이트 구축

Apache2 + Tomcat 5 + JK2 를 사용한 로드밸런싱과 세션 복제 클러스터링 사이트 구축 Apache2 + Tomcat 5 + JK2 : 2004-11-04 Release Ver. 1.0.0.1 Email : ykkim@cabsoftware.com Apache JK2 ( )., JK2 Apache2 JK2. 3 - JK2, Tomcat -.. 3, Stress ( ),., localhost ip., 2. 2,. Windows XP., Window

More information

<param-value> 파라미터의값 </param-value> </init-param> </servlet> <servlet-mapping> <url-pattern>/ 매핑문자열 </url-pattern> </servlet-mapping> - 위의예에서 ServletC

<param-value> 파라미터의값 </param-value> </init-param> </servlet> <servlet-mapping> <url-pattern>/ 매핑문자열 </url-pattern> </servlet-mapping> - 위의예에서 ServletC 내장객체의정리 헷갈리는내장객체들정리하기 - 컨테이너안에서는수많은객체들이스스로의존재목적에따라서일을한다. - ServletContext, ServletConfig 객체는컨텍스트초기화와서블릿초기화정보를가지고있다. - 이외에도다음의객체들이서블릿과 JSP와 EL에서각각의역할을수행한다. 서블릿의객체 JspWriter HttpServletRequest HttpServletResponse

More information

Microsoft PowerPoint - web-part03-ch19-node.js기본.pptx

Microsoft 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 information

Modern Javascript

Modern 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

4. #include <stdio.h> #include <stdlib.h> int main() { functiona(); } void functiona() { printf("hihi\n"); } warning: conflicting types for functiona

4. #include <stdio.h> #include <stdlib.h> int main() { functiona(); } void functiona() { printf(hihi\n); } warning: conflicting types for functiona 이름 : 학번 : A. True or False: 각각항목마다 True 인지 False 인지적으세요. 1. (Python:) randint 함수를사용하려면, random 모듈을 import 해야한다. 2. (Python:) '' (single quote) 는한글자를표현할때, (double quote) 는문자열을표현할때사용한다. B. 다음에러를수정하는방법을적으세요.

More information

PHP & ASP

PHP & ASP 단어장프로젝트 프로젝트2 단어장 select * from address where address like '% 경기도 %' td,li,input{font-size:9pt}

More information

파일로입출력하기II - 파일출력클래스중에는데이터를일정한형태로출력하는기능을가지고있다. - PrintWriter와 PrintStream을사용해서원하는형태로출력할수있다. - PrintStream은구버전으로가능하면 PrintWriter 클래스를사용한다. PrintWriter

파일로입출력하기II - 파일출력클래스중에는데이터를일정한형태로출력하는기능을가지고있다. - PrintWriter와 PrintStream을사용해서원하는형태로출력할수있다. - PrintStream은구버전으로가능하면 PrintWriter 클래스를사용한다. PrintWriter 파일로입출력하기II - 파일출력클래스중에는데이터를일정한형태로출력하는기능을가지고있다. - PrintWriter와 PrintStream을사용해서원하는형태로출력할수있다. - PrintStream은구버전으로가능하면 PrintWriter 클래스를사용한다. PrintWriter 클래스의사용법은다음과같다. PrintWriter writer = new PrintWriter("output.txt");

More information

<4D F736F F F696E74202D20B5A5C0CCC5CDBAA3C0CCBDBA5F3130C1D6C2F75F31C2F7BDC32E >

<4D F736F F F696E74202D20B5A5C0CCC5CDBAA3C0CCBDBA5F3130C1D6C2F75F31C2F7BDC32E > Chapter 8 데이터베이스응용개발 목차 사용자인터페이스와도구들 웹인터페이스와데이터베이스 웹기초 Servlet 과 JSP 대규모웹응용개발 ASP.Net 8 장. 데이터베이스응용개발 (Page 1) 1. 사용자인터페이스와도구들 대부분의데이터베이스사용자들은 SQL을사용하지않음 응용프로그램 : 사용자와데이터베이스를연결 데이터베이스응용의구조 Front-end Middle

More information

Microsoft PowerPoint - 03-TCP Programming.ppt

Microsoft PowerPoint - 03-TCP Programming.ppt Chapter 3. - Socket in Java - 목차 소켓소개 자바에서의 프로그램작성방법 주요클래스와메소드 HTTP 프로토콜을이용한예제 에코프로그램 에코프로그램 - EchoServer 에코프로그램 - EchoClient Q/A 1 1 소켓소개 IP,, and Socket 포트 (): 전송계층에서통신을수행하는응용프로그램을찾기위한주소 소켓 (Socket):

More information

13ÀåÃß°¡ºÐ

13ÀåÃß°¡ºÐ 13 CHAPTER 13 CHAPTER 2 3 4 5 6 7 06 android:background="#ffffffff"> 07

More information

C H A P T E R 2

C 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 information

Javascript.pages

Javascript.pages JQuery jquery part1 JavaScript : e-mail:leseraphina@naver.com http://www.webhard.co.kr I.? 2 ......,,. : : html5 ; ; .

More information

Eclipse 와 Firefox 를이용한 Javascript 개발 발표자 : 문경대 11 년 10 월 26 일수요일

Eclipse 와 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

* Factory class for query and DML clause creation * tiwe * */ public class JPAQueryFactory implements JPQLQueryFactory private f

* 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 information

Microsoft PowerPoint - aj-lecture9.ppt [호환 모드]

Microsoft PowerPoint - aj-lecture9.ppt [호환 모드] 표현언어 표현언어와커스텀태그 524730-1 2019 년봄학기 5/20/2019 박경신 표현언어 (Expression Language) JSP에서사용가능한새로운스크립트언어 JSP의 PAGE, REQUEST, SESSION, APPLICATION 영역에저장된속성에사용 수치연산, 관계연산, 논리연산자제공 자바클래스메서드호출기능제공 쿠키, 내장객체의속성등 JSP를위한표현언어의내장객체제공

More information

NATE CP 컨텐츠 개발규격서_V4.4_1.doc

NATE CP 컨텐츠 개발규격서_V4.4_1.doc Rev.A 01/10 This Document is copyrighted by SK Telecom and may not be reproduced without permission 1 Rev.A 01/10 - - - - - - URL (dsplstupper) - Parameter ( SKTUPPER=>SU, SKTMENU=>SM) - - CP - - - - -

More information

기술문서 작성 XXE Attacks 작성자 : 인천대학교 OneScore 김영성 I. 소개 2 II. 본문 2 가. XML external entities 2 나. XXE Attack 3 다. 점검방법 3 라.

기술문서 작성 XXE Attacks 작성자 : 인천대학교 OneScore 김영성 I. 소개 2 II. 본문 2 가. XML external entities 2 나. XXE Attack 3 다. 점검방법 3 라. 기술문서 14. 11. 10. 작성 XXE Attacks 작성자 : 인천대학교 OneScore 김영성 dokymania@naver.com I. 소개 2 II. 본문 2 가. XML external entities 2 나. XXE Attack 3 다. 점검방법 3 라. Exploit 5 마. 피해 6 III. 결론 6 가. 권고사항 6 I. 소개 가. 역자 본문서는

More information

untitled

untitled : 2009 00 00 : IMS - 1.0 : IPR. IMS,.,. IMS IMS IMS 1). Copyright IMS Global Learning Consortium 2007. All Rights Reserved., IMS Korea ( ). IMS,. IMS,., IMS IMS., IMS.,., 3. Copyright 2007 by IMS Global

More information

Cluster management software

Cluster management software 자바네트워크프로그래밍 (OCJP 국제공인자격취득중심 ) 충북대학교 최민 기본예제 예외클래스를정의하고사용하는예제 class NewException extends Exception { public class ExceptionTest { static void methoda() throws NewException { System.out.println("NewException

More information

Microsoft PowerPoint - Supplement-03-TCP Programming.ppt [호환 모드]

Microsoft PowerPoint - Supplement-03-TCP Programming.ppt [호환 모드] - Socket Programming in Java - 목차 소켓소개 자바에서의 TCP 프로그램작성방법 주요클래스와메소드 HTTP 프로토콜을이용한예제 에코프로그램 Q/A 에코프로그램 - EchoServer 에코프로그램 - EchoClient TCP Programming 1 소켓소개 IP, Port, and Socket 포트 (Port): 전송계층에서통신을수행하는응용프로그램을찾기위한주소

More information

초보자를 위한 자바 2 21일 완성 - 최신개정판

초보자를 위한 자바 2 21일 완성 - 최신개정판 .,,.,. 7. Sun Microsystems.,,. Sun Bill Joy.. 15... ( ), ( )... 4600. .,,,,,., 5 Java 2 1.4. C++, Perl, Visual Basic, Delphi, Microsoft C#. WebGain Visual Cafe, Borland JBuilder, Sun ONE Studio., Sun Java

More information

nTOP CP 컨텐츠 개발규격서_V4.1_.doc

nTOP CP 컨텐츠 개발규격서_V4.1_.doc Rev.A 01/09 This Document is copyrighted by SK Telecom and may not be reproduced without permission 1 Rev.A 01/09 - - - - - - URL (dsplstupper) - Parameter ( SKTUPPER=>SU, SKTMENU=>SM) - - CP This Document

More information

Java ...

Java ... 컴퓨터언어 1 Java 제어문 조성일 조건문 : if, switch 어떠한조건을조사하여각기다른명령을실행 if 문, switch 문 if 문 if - else 문형식 if 문형식 if ( 조건식 ) { 명령문 1; 명령문 2;... if ( 조건식 ) { 명령문 1; 명령문 2;... else { 명령문 a; 명령문 b;... 예제 1 정수를입력받아짝수와홀수를판별하는프로그램을작성하시오.

More information

서블릿의라이프사이클 뇌를자극하는 JSP & Servlet

서블릿의라이프사이클 뇌를자극하는 JSP & Servlet 서블릿의라이프사이클 뇌를자극하는 JSP & Servlet Contents v 학습목표 서블릿클래스로부터서블릿객체가만들어지고, 서블릿객체가초기화되어서서블릿이되고, 서블릿이사용되고, 최종적으로소멸되기까지의전과정을서블릿의라이프사이클이라고한다. 이장에서는서브릿의라이프사이클에관련된프로그래밍기술을배워보자. v 내용 서블릿의라이프사이클 서블릿클래스의 init 메서드의 destroy

More information

歯Writing_Enterprise_Applications_2_JunoYoon.PDF

歯Writing_Enterprise_Applications_2_JunoYoon.PDF Writing Enterprise Applications with Java 2 Platform, Enterprise Edition - part2 JSTORM http//wwwjstormpekr Revision Document Information Document title Writing Enterprise Applications

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 4 (Object) (Class) (Instance) (Method) (Constructor) Memory 1 UML 1 @ & 1 (Real World) (Software World) @ &.. () () @ & 2 (Real World) (Software World) OOA/ Modeling Abstraction Instantiation

More information

어댑터뷰

어댑터뷰 04 커스텀어댑터뷰 (Custom Adapter View) 커스텀어댑터뷰 (Custom Adapter View) 커스텀어댑터뷰 (Custom Adatper View) 란? u 어댑터뷰의항목하나는단순한문자열이나이미지뿐만아니라, 임의의뷰가될수 있음 이미지뷰 u 커스텀어댑터뷰설정절차 1 2 항목을위한 XML 레이아웃정의 어댑터정의 3 어댑터를생성하고어댑터뷰객체에연결

More information

http://www.springcamp.io/2017/ ü ö @RestController public class MyController { @GetMapping("/hello/{name}") String hello(@pathvariable String name) { return "Hello " + name; } } @RestController

More information

3장

3장 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 information

chap 5: Trees

chap 5: Trees 5. Threaded Binary Tree 기본개념 n 개의노드를갖는이진트리에는 2n 개의링크가존재 2n 개의링크중에 n + 1 개의링크값은 null Null 링크를다른노드에대한포인터로대체 Threads Thread 의이용 ptr left_child = NULL 일경우, ptr left_child 를 ptr 의 inorder predecessor 를가리키도록변경

More information

03-JAVA Syntax(2).PDF

03-JAVA Syntax(2).PDF JAVA Programming Language Syntax of JAVA (literal) (Variable and data types) (Comments) (Arithmetic) (Comparisons) (Operators) 2 HelloWorld application Helloworldjava // class HelloWorld { //attribute

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 Reasons for Poor Performance Programs 60% Design 20% System 2.5% Database 17.5% Source: ORACLE Performance Tuning 1 SMS TOOL DBA Monitoring TOOL Administration TOOL Performance Insight Backup SQL TUNING

More information

2장 변수와 프로시저 작성하기

2장  변수와 프로시저 작성하기 Chapter. RequestDispatcher 활용 요청재지정이란? RequestDispatcher 활용 요청재지정구현예제 Chapter.9 : RequestDispatcher 활용 1. 요청재지정이란? 클라이언트로부터요청받은 Servlet 프로그램이응답을하지않고다른자원에수행흐름을넘겨다른자원의처리결과를대신응답하는것또는다른자원의수행결과를포함하여응답하는것을요청재지정이라고한다.

More information

Chap7.PDF

Chap7.PDF Chapter 7 The SUN Intranet Data Warehouse: Architecture and Tools All rights reserved 1 Intranet Data Warehouse : Distributed Networking Computing Peer-to-peer Peer-to-peer:,. C/S Microsoft ActiveX DCOM(Distributed

More information

Contents Contents 2 1 Abstract 3 2 Infer Checkers Eradicate Infer....

Contents Contents 2 1 Abstract 3 2 Infer Checkers Eradicate Infer.... SV2016 정적분석보고서 201214262 라가영 201313250 서지혁 June 9, 2016 1 Contents Contents 2 1 Abstract 3 2 Infer 3 2.1 Checkers................................ 3 2.2 Eradicate............................... 3 2.3 Infer..................................

More information