1 JSF JSF JSF MVC 2 We

Size: px
Start display at page:

Download "1 JSF JSF JSF MVC 2 We"

Transcription

1 II tomoharu/ 1

2 1 JSF JSF JSF MVC 2 Web UI Web guessnumber UI Ant Ant build.xml property task target Ant Ant URL MVC 2 JSF MVC MVC i

3 JSF MVC faces-config.xml JSP JSP JSP f:view h:form h:input id HTML JSP Tomcat faces-config.xml web.xml JSP URL JSP JSP h:commandbutton faces-config.xml JSF Value Binding JavaBeans Managed Bean faces-config.xml JSP Value Binding Value Binding ii

4 6.5.2 Value Binding h:outputtext Value Binding Method Binding Action Method Action Method Method Binding Managed Bean JSP Method Binding Method Binding Action Method Action Method outcome Action Method Method Binding (1) JSP Managed Bean Model JSP h:datatable h:column h:datatable datatable t:datatable t:datascroller Component Binding (2) h:commandlink Component Binding Action Method JSP iii

5 Tomahawk page1.jsp h:panelgrid page2.jsp h:message JSF UI UI guessnumber UI UI JSF JSF JSF (1) (2) (3) (4) (5) (6) iv

6 1 JSF 1.1 Web Web 1.2 JSF JSF (JavaServer Faces) Web Java EoD (Ease of Development) J2SE 5.0 EJB 3.0 JSF EoD JSF Web Java Web Struts JSF Struts Web JSF Web GUI UI Web (2004 ) JSF (JavaServer Faces) 3 (Version 1.0) J2EE 5.0 JSF Sun Microsystems JSF Web Sun Java Studio Creator 1

7 JSF 1.3 JSF JSF MVC 2 Web UI Web MVC 2 Web JSF Struts MVC 2 Web MVC (Model) (View) (Controller) ( 1.1) JSF Web Controller ( FacesServlet Servlet ) View Model UI Web JSF UI Web UI (User Interface Component) GUI Windows Visula Basic Java Swing UI JSF Web JSF UI UI 2

8 1.1: MVC JSF Tomcat JSF Tomcat Web JSF JSTL 1.1 Tomcat JSF JSTL (Java Standard Tag Library) guessnumber JSF guessnumber 3

9 1.2: guessnumber guessnumber Java Duke (0 10) 0 10 Web Tomcat %CATALINA HOME% Solaris Linux Unix 1. JSF samples/jsf-guessnumber %CATALINA HOME%\webapps 4

10 2. Tomcat UI Web 1.3 UI guessnumber wakhok 1.4 5

11 1.3: guessnumber UI 6

12 1.4: 7

13 2 Ant 2.1 Ant Ant Java Ant Jar Ant Java UNIX make Ant make OS make UNIX Write Once, Run Anywhere Java Ant Java make Makefile XML Makefile Makefile make Ant Tomcat Jakarta Project ( ant.apache.org/) 2.2 build.xml Ant XML build.xml jp.ac.wakhok.tomoharu.csv CSVLine.java CSVTokenizer.java Ant jar Javadoc API 8

14 zip src/jp/ac/wakhok/tomoharu/csv build.xml 1: build.xml <?xml version="1.0"?> <project name="csv" default="all" basedir="."> <property name="srcdir" value="src" /> <property name="classdir" value="classes" /> <property name="packagename" value="jp.ac.wakhok.tomoharu.csv" /> <property name="apidocsdir" value="docs/api" /> <target name="init"> <tstamp/> </target> <target name="compile" depends="init"> <mkdir dir="${classdir}" /> <javac srcdir="${srcdir}" destdir="${classdir}" /> </target> <target name="jar" depends="compile"> <jar jarfile="csv.jar" basedir="${classdir}" /> </target> <target name="javadoc" depends="init"> <mkdir dir="${apidocsdir}" /> <javadoc packagenames="jp.ac.wakhok.tomoharu.csv" sourcepath="${srcdir}" destdir="${apidocsdir}" /> </target> <target name="all" depends="jar, javadoc"> <zip zipfile="../csv.zip" basedir=".." includes="csv/**" excludes="**/classes/**" /> </target> </project> build.xml project project target target task 9

15 2.2.1 property project property property srcdir property ${srcdir} task task Ant task task javac jar javadoc mkdir zip tstamp Java tstamp DSTAMP, TSTAMP, TODAY CVS task javac task <javac srcdir="${srcdir}" destdir="${classdir}" /> javac srcdir destdir 10

16 2.2.3 target target task compile name target mkdir task javac task target target compile init init compile task Ant target target Ant Windows Unix *.java?.java.java a.java a.xml b.java * 0? 1 includes="csv/**" ** csv 2.3 Ant Ant JAVA HOME Java 2 SDK ANT HOME Ant ANT HOME bin Ant Windows c:\ant 11

17 set ANT_HOME=c:\ant set JAVA_HOME=c:\j2sdk1.4.2 set PATH=%PATH%;%ANT_HOME%\bin 2.4 Ant ant build.xml ( ) C:\> ant ant target target project default all target <project name="csv" default="all" basedir=".">... </project> target C:\> ant javadoc target 2.5 build.xml build.xml jar <?xml version="1.0"?> <project name="google Web API Sample" default="compile" basedir="."> <property environment="env"/> <property name="jaxrpc.home" value="${env.jwsdp_home}/jaxrpc"/> <property name="jaxp.home" value="${env.jwsdp_home}/jaxp"/> 12

18 <property name="jaxr.home" value="${env.jwsdp_home}/jaxr"/> <property name="saaj.home" value="${env.jwsdp_home}/saaj"/> <property name="jaxb.home" value="${env.jwsdp_home}/jaxb"/> <property name="shared.lib" value="${env.jwsdp_home}/jwsdp-shared/lib"/> <property name="common.lib" value="${env.jwsdp_home}/common/lib"/> <property name="common.endorsed" \ value="${env.jwsdp_home}/common/endorsed"/> <path id="wspack.classpath"> <!-- JAXRPC jars --> <pathelement location="${jaxrpc.home}/lib/jaxrpc-api.jar"/> <pathelement location="${jaxrpc.home}/lib/jaxrpc-impl.jar"/> <pathelement location="${jaxrpc.home}/lib/jaxrpc-spi.jar"/> <!-- JAXP jars --> <pathelement location="${jaxp.home}/lib/jaxp-api.jar"/> <pathelement location="${jaxp.home}/lib/endorsed/xercesimpl.jar"/> <pathelement location="${jaxp.home}/lib/endorsed/sax.jar"/> <pathelement location="${jaxp.home}/lib/endorsed/dom.jar"/> <pathelement location="${jaxp.home}/lib/endorsed/xalan.jar"/> <!-- JAXR jars --> <pathelement location="${jaxr.home}/lib/jaxr-api.jar"/> <pathelement location="${jaxr.home}/lib/jaxr-impl.jar"/> <!-- SAAJ jars --> <pathelement location="${saaj.home}/lib/saaj-api.jar"/> <pathelement location="${saaj.home}/lib/saaj-impl.jar"/> <!-- JAXB jars --> <pathelement location="${jaxb.home}/lib/jaxb-api.jar"/> <pathelement location="${jaxb.home}/lib/jaxb-impl.jar"/> <pathelement location="${jaxb.home}/lib/jaxb-xjc.jar"/> <pathelement location="${jaxb.home}/lib/jaxb-libs.jar"/> <!-- Common jars --> <pathelement location="${shared.lib}/activation.jar"/> <pathelement location="${shared.lib}/mail.jar"/> <pathelement location="${shared.lib}/commons-logging.jar"/> <pathelement location="${shared.lib}/jax-qname.jar"/> <pathelement location="${shared.lib}/xsdlib.jar"/> <pathelement location="${shared.lib}/relaxngdatatype.jar"/> <pathelement location="${shared.lib}/namespace.jar"/> <!-- Servlet jar --> <pathelement location="${jwsdp.home}/common/lib/servlet-api.jar"/> <!-- current directory --> <pathelement location="."/> </path> <target name="init"> <tstamp/> </target> <target name="compile" depends="init"> <javac srcdir="."> 13

19 <include name="*.java" /> <classpath> <path refid="wspack.classpath"/> </classpath> </javac> </target> <target name="run" depends="compile"> <java classname="googlesearch" > <arg value="wakhok"/> <classpath> <path refid="wspack.classpath"/> </classpath> </java> </target> </project> property env <property environment="env"/> property value ${env.jwsdp HOME} env JWSDP HOME JWSDP HOME /jaxrpc jaxrpc.home <property name="jaxrpc.home" value="${env.jwsdp_home}/jaxrpc"/> jar wspack.classpath id <path id="wspack.classpath"> <!-- JAXRPC jars --> <pathelement location="${jaxrpc.home}/lib/jaxrpc-api.jar"/> <pathelement location="${jaxrpc.home}/lib/jaxrpc-impl.jar"/>... </path> path wspack.classpath 14

20 <target name="compile" depends="init"> <javac srcdir="."> <include name="*.java" /> <classpath> <path refid="wspack.classpath"/> </classpath> </javac> </target> 2.6 URL Apache Ant Ant Apache Ant Ant 15

21 3 MVC 2 JSF 3.1 MVC MVC 2 Model-View-Controller (MVC) (Model) (View) (Controller) ( 3.1) J2EE JavaBeans JSP Servlet J2EE MVC JavaBeans ( ) J2EE JSP Servlet 16

22 3.1: MVC 2 17

23 3.1.5 MVC 2 Web Servlet HTTP JavaBeans Servlet JavaBeans ( Beans ) JSP JSP JavaBeans 3.2 JSF MVC 2 JSF MVC 2 MVC 2 JSF View Controller JSF FacesServlet Servlet Web FacesServlet JSP JSP UI HTML Value Binding Method Binding JavaBeans Value Binding JavaBeans HTML Managed Bean ( Backing Bean) JavaBeans Managed Bean 18

24 3.2.5 faces-config.xml JSF faces-config.xml Managed Bean 19

25 4 JSP 4.1 JSP JSP JSF JSP UI JSP JSP 2: test.jsp page contenttype="text/html; charset=shift_jis" %> taglib uri=" prefix="h" %> taglib uri=" prefix="f" %> <html> <head> <link href="style.css" type="text/css" rel="stylesheet" /> <title>jsf: JSP </title> </head> <body> <h1>jsf: JSP </h1> <f:view> <h:form id="searchform"> <p>!</p> <h:inputtext id="word" /> </h:form> </f:view> </body> </html> JSP Web

26 4.1: JSP JSF HTML tag HTML h: UI taglib uri=" prefix="h" %> JSF Core tag Core tag HTML f: taglib uri=" prefix="f" %> f:view JSP f:view JSF f:view f:view JSF f: Core Tag 21

27 <f:view> <h:form> </h:form> </f:view> h:form f:view h:form HTML UI HTML form h: HTML Tag <f:view> <h:form> </h:form> </f:view> h:input h:input UI HTML <input type= text > <h:form> <h:inputtext id="word" /> </h:form> id UI id id f:view id JSF id <h:form id="searchform"> <p>!</p> <h:inputtext id="word" /> </h:form> 22

28 4.1.7 HTML JSP Web HTML <form id="searchform" method="post" action="/jsf-test01/jsp/test.jsp; jsessionid=0df696e1084d276d5841af0ee3da9d66" enctype="application/x-www-form-urlencoded"> <p>!</p> <input id="searchform:word" type="text" name="searchform:word" /> <input type="hidden" name="searchform" value="searchform" /> </form> 4.2 JSP Tomcat JSP Tomcat %CATALINA HOME%\webapps Web jsf-test01 jsf-test test.jsp - WEB-INF/ ---- web.xml -- faces-config.xml -- lib/ - commons-beanutils.jar - commons-collections.jar - commons-digester.jar - commons-logging.jar - jsf-api.jar - jsf-impl.jar - jstl.jar - standard.jar 23

29 4.2.2 JSF lib jar WEB-INF\lib commons-beanutils.jar commons-collections.jar commons-digester.jar commons-logging.jar jsf-api.jar jsf-impl.jar JSTL lib jar jstl.jar standard.jar faces-config.xml faces-config.xml faces-config.xml JSF Web <?xml version="1.0"?> <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" " <faces-config> </faces-config> faces-config 24

30 4.2.4 web.xml web.xml <?xml version= 1.0 encoding= UTF-8?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" " <web-app> <display-name> JSF: jsp sample </display-name> <description> JSF: jsp sample </description> <servlet> <servlet-name>faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.facesservlet</servlet-class> <load-on-startup> 1 </load-on-startup> </servlet> <servlet-mapping> <servlet-name>faces Servlet</servlet-name> <url-pattern>/jsp/*</url-pattern> </servlet-mapping> </web-app> servlet Controller Servlet javax.faces.webapp.facesservlet load-on-startup (JSF ) Web Servlet JSF Web FacesServlet JSP <url-pattern>/jsp/*</url-pattern> JSP /jsp 25

31 4.2.5 JSP URL Tomcat URL ( URL) jsf-test01 ( URL) JSP FacesServlet 26

32 5 5.1 Web ( 5.1) 5.2 JSP JSP JSP 3: page1.jsp <%@ page contenttype="text/html; charset=shift_jis" %> <%@ taglib uri=" prefix="h" %> <%@ taglib uri=" prefix="f" %> <html> <head> <link href="style.css" type="text/css" rel="stylesheet" /> <title>jsf: </title> </head> <body> <h1>jsf: </h1> <f:view> <h:form id="searchform"> <p> </p> <h:commandbutton id="button1" action="success" value="go!" /> </h:form> </f:view> </body> </html> 27

33 5.1: 28

34 JSP JSP JSF f:view h:form HTML h:commandbutton JSP h:commandbutton HTML UI <h:commandbutton id="button1" action="success" value="go!" /> UI id value Go! 5.1 Go! action outcome Web outcome outcome faces-config.xml faces-config.xml faces-config.xml <?xml version="1.0"?> <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" " <faces-config> <navigation-rule> <from-view-id>/page1.jsp</from-view-id> <navigation-case> <from-outcome>success</from-outcome> <to-view-id>/page2.jsp</to-view-id> </navigation-case> </navigation-rule> </faces-config> 29

35 faces-config.xml faces-config navigation-rule navigation-rule <navigation-rule> <from-view-id>/page1.jsp</from-view-id> <navigation-case> <from-outcome>success</from-outcome> <to-view-id>/page2.jsp</to-view-id> </navigation-case> </navigation-rule> from-view-id JSP <from-view-id>/page1.jsp</from-view-id> page1.jsp page1.jsp navigation-case <navigation-case> <from-outcome>success</from-outcome> <to-view-id>/page2.jsp</to-view-id> </navigation-case> from-view-id page1.jsp page1.jsp from-outcome success outcome to-view-id /page2.jsp 5.3 JSF JSF MVC MVC 2 Servlet Servlet JSP JSF faces-config.xml Web 30

36 5.4 (page1.jsp) (h:commandbutton) h:commandbutton outcome success faces-config.xml navigation-rule from-view-id ( ) page1.jsp navigation-case outcome success page2.jsp outcome success page2.jsp JSP 31

37 6 Value Binding JavaBeans JavaBeans JavaBeans Java Bean JavaBeans ISBN Java JavaBeans title title settitle() gettitle() title gettitle title getter public String gettitle() { return this.t; } 32

38 6.1: 33

39 settitle title setter public void settitle(string title) { this.t = title; } setter getter getter get setter set set, get set get setter getter setter = "set" + ( ) getter = "get" + ( ) setter getter set get = ( setter "set" ) = ( getter "get" ) : setter, getter title getter setter gettitle settitle gettitle t settitle t title 34

40 6.3 Managed Bean HTML Managed Bean ( Backing Bean) JavaBeans Managed Bean Managed Bean 4: ParameterBean.java public class ParameterBean { private String word = ""; public void setword(string word) { this.word = word; } } public String getword() { return word; } setword getword Bean word word 6.4 faces-config.xml Managed Bean faces-config.xml faces-config.xml 5: faces-config.xml <?xml version="1.0"?> <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" " <faces-config> <managed-bean> <managed-bean-name>parameterbean</managed-bean-name> <managed-bean-class>parameterbean</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> </managed-bean> 35

41 <navigation-rule> <from-view-id>/page1.jsp</from-view-id> <navigation-case> <from-outcome>success</from-outcome> <to-view-id>/page2.jsp</to-view-id> </navigation-case> </navigation-rule> </faces-config> faces-config.xml navigation-rule managedbean managed-bean <managed-bean> <managed-bean-name>parameterbean</managed-bean-name> <managed-bean-class>parameterbean</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> </managed-bean> managed-bean-class Managed Bean managed-bean-name Managed Bean ParameterBean managed-bean-scope Managed Bean application Web session request (HTTP ) none faces-config.xml session Managed Bean managed-bean-scope JSP usebean 36

42 6.5 JSP Value Binding Value Binding JSP 6: page1.jsp page contenttype="text/html; charset=shift_jis" %> taglib uri=" prefix="h" %> taglib uri=" prefix="f" %> <html> <head> <link href="style.css" type="text/css" rel="stylesheet" /> <title>jsf: </title> </head> <body> <h1>jsf: </h1> <f:view> <h:form id="searchform"> <h:inputtext id="word" value="#{parameterbean.word}" /> <h:commandbutton id="button1" action="success" value="go!" /> </h:form> </f:view> </body> </html> h:inputtext UI value #{ParameterBean.word} h:inputtext #{ParameterBean.word} ParameterBean word Value Binding #{ } Value Binding Value Binding Value Binding #{ Bean. } 37

43 Bean managed-bean-name Managed Bean JSP #{ParameterBean.word} Value Binding ParameterBean JavaBeans word h:outputtext page2.jsp JSP 7: page2.jsp page contenttype="text/html; charset=shift_jis" %> taglib uri=" prefix="h" %> taglib uri=" prefix="f" %> <html> <head> <link href="style.css" type="text/css" rel="stylesheet" /> <title>jsf: </title> </head> <body> <h1>jsf: </h1> <f:view> <h:form id="searchform"> <h:outputtext id="word" value="#{parameterbean.word}" /> </h:form> </f:view> </body> </html> h:outputtext <h:outputtext id="word" value="#{parameterbean.word}" /> h:outputtext value UI UI id h:inputtext value Value Binding ParameterBean word 38

44 6.6 Value Binding h:inputtext Value Binding ParameterBean word ParameterBean faces-config.xml session ParameterBean faces-config.xml h:outputtext Value Binding ParameterBean word 6.2 ManagedBean JSP 39

45 W P P W l e b ブラウザ側 e b コンテナ側 page1.jsp P a r a m e t e r B e a n ( P a r a m e t e r B e a n. c l a s s ) w o r d プロパティ < s > w a k h o k < / s > < h : i n p u t T e x t i d = " w o r d " v a l u e = " # { P a r a m e t e r B e a n. w o r d } " / > # { P a r a m e t e r B e a n. w o r d } page2.jsp < f a c e s # c o n f i g > < m a n a g e d # b e a n > < m a n a g e d # b e a n # n a m e > a r a m e t e r B e a n < / m a n a g e d # b e a n # n a m e > < m a n a g e d # b e a n # c l a s s > a r a m e t e r B e a n < h : o u t p u t T e x t i d = " w o r d " v a l u e = " # { P a r a m e t e r B e a n. w o r d } " / > f a c e s C c o n fi g. x m < / m a n a g e d # b e a n # c l a s s > < m a n a g e d # b e a n # s c o p e > s e s s i o n < / m a n a g e d # b e a n # s c o p e > < / m a n a g e d # b e a n > < / f a c e s # c o n f i g > 6.2: ManagedBean JSP 40

46 7 Method Binding 7.1 Web Web Managed Bean faces-config.xml JSP Value Binding Managed Bean 7.2 Action Method 7.1 JSF Action Method Action Method Managed Bean 7.3 Action Method Method Binding Managed Bean Managed Bean 8: ParameterBean.java import java.util.date; import java.text.dateformat; public class ParameterBean { private String word = ""; public void setword(string word) { 41

47 7.1: 42

48 } this.word = word; public String getword() { return word; } public String currenttime() { Date d = new Date(); DateFormat df = DateFormat.getDateTimeInstance(); StringBuffer sb = new StringBuffer(); sb.append(" "); sb.append(word); sb.append(" \n"); sb.append(" "); sb.append(df.format(d)); sb.append(" "); word = new String(sb); } } return "success"; Managed Bean currenttime Action Method currenttime success JSP Method Binding JSP 9: page1.jsp <%@ page contenttype="text/html; charset=shift_jis" %> <%@ taglib uri=" prefix="h" %> <%@ taglib uri=" prefix="f" %> <html> <head> <link href="style.css" type="text/css" rel="stylesheet" /> <title>jsf: </title> </head> <body> 43

49 <h1>jsf: </h1> <f:view> <h:form id="searchform"> <h:inputtext id="word" value="#{parameterbean.word}" /> <h:commandbutton id="button1" action="#{parameterbean.currenttime}" value="go!" /> </h:form> </f:view> </body> </html> h:commandbutton action <h:commandbutton id="button1" action="#{parameterbean.currenttime}" value="go!" /> action #{ParameterBean.currentTime} h:commandbutton action ( action ) <h:commandbutton id="button1" action="success" value="go!" /> ( action ) <h:commandbutton id="button1" action="#{parameterbean.currenttime}" value="go!" /> action success Value Binding #{ParameterBean.currentTime} ParameterBean currenttime Method Binding #{ } Method Binding Method Binding Method Binding #{ Bean. Action Method } Bean managed-bean-name Action Method Action Method 44

50 7.3.4 Action Method Action Method public String outcome currenttime Action Method outcome Action Method outcome outcome h:commandbutton action faces-config.xml h:commandbutton <h:commandbutton id="button1" action="#{parameterbean.currenttime}" value="go!" /> currenttime Action Method <h:commandbutton id="button1" action="success" value="go!" /> Action Method outcome Action Method Method Binding Action Method Method Binding commandbutton #{ Bean. Action Method } Method Binding Action Method Action Method String outcome outcome faces-config.xml outcome Action Method 45

51 7.2: 7.4 (1) HSQLDB Action Method Action Method JDBC JSP 10: search.jsp page contenttype="text/html; charset=shift_jis" %> taglib uri=" prefix="h" %> taglib uri=" prefix="f" %> <html> <head> <link href="style.css" type="text/css" rel="stylesheet" /> <title> </title> </head> <body> <h1> </h1> 46

52 7.3: 47

53 <hr /> <f:view> <h:form id="searchform"> <h:inputtext id="searchword" value="#{booksearcher.word}" /> <h:commandbutton id="submit" action="#{booksearcher.searchbooks}" value="go!" /> </h:form> </f:view> </body> </html> h:input Value Binding h:commandbutton Method Binding Managed Bean Managed Bean 11: BookSearcher.java import java.util.list; import java.util.arraylist; import java.sql.*; import javax.sql.*; import javax.faces.context.facescontext; import javax.faces.el.valuebinding; public class BookSearcher { private String word = ""; private String id = ""; private List<BookData> list = null; private BookData book = null; public void setword(string word) { this.word = word; } public String getword() { return word; } public List<BookData> getbooklist() { return list; } 48

54 public BookData getbookdata() { return book; } public String searchbooks() { searchbooks(word); return "success"; } private void searchbooks(string word) { list = new ArrayList<BookData>(); try { Class.forName("org.hsqldb.jdbcDriver"); String url = "jdbc:hsqldb:hsql://localhost"; Connection con = DriverManager.getConnection(url, "sa", ""); String selectstatement = "select * " + "from books where ndc like? " + "or tyosya_hyouji like? " + "or id like? " + "or title like? " + "or author like? " + "or publisher like? "; PreparedStatement prepstmt = con.preparestatement(selectstatement); prepstmt.setstring(1, appendpercent(word)); prepstmt.setstring(2, appendpercent(word)); prepstmt.setstring(3, appendpercent(word)); prepstmt.setstring(4, appendpercent(word)); prepstmt.setstring(5, appendpercent(word)); prepstmt.setstring(6, appendpercent(word)); ResultSet rs = prepstmt.executequery(); while (rs.next()) { BookData book = new BookData(); book.setndc(rs.getstring("ndc")); book.settyosya_hyouji(rs.getstring("tyosya_hyouji")); book.setid(rs.getstring("id")); book.settitle(rs.getstring("title")); book.setauthor(rs.getstring("author")); book.setpublisher(rs.getstring("publisher")); list.add(book); } prepstmt.close(); } catch (ClassNotFoundException e) { e.printstacktrace(); } catch (SQLException e) { e.printstacktrace(); 49

55 } } private String appendpercent(string from) { StringBuffer to = new StringBuffer(); to.append("%"); to.append(from); to.append("%"); } return new String(to); } setword, getword word booklist, bookdata searchbooks Action Method Action Method searchbooks public String searchbooks() { searchbooks(word); return "success"; } private void searchbooks(string word) { // } Model Model BookData JavaBeans 12: BookData.java import java.io.serializable; public class BookData implements Serializable { private String ndc = ""; private String tyosya_hyouji = ""; private String id = ""; private String title = ""; private String author = ""; private String publisher = ""; 50

56 public String getndc() { return ndc; } public void setndc(string ndc) { this.ndc = ndc; } public String gettyosya_hyouji() { return tyosya_hyouji; } public void settyosya_hyouji(string tyosya_hyouji) { this.tyosya_hyouji = tyosya_hyouji; } public String getid() { return id; } public void setid(string id) { this.id = id; } public String gettitle() { return title; } public void settitle(string title) { this.title = title; } public String getauthor() { return author; } public void setauthor(string author) { this.author = author; } public String getpublisher() { return publisher; } public void setpublisher(string publisher) { this.publisher = publisher; } } 51

57 ndc, tyosya hyouji, title BookData java.util.list BookData List<BookData> list = new ArrayList<BookData>(); BookData book = new BookData(); book.setid(rs.getstring("id")); book.settitle(rs.getstring("title")); book.setauthor(rs.getstring("author")); list.add(book); JSP JSP 13: list.jsp <%@ page contenttype="text/html; charset=shift_jis" %> <%@ taglib uri=" prefix="h" %> <%@ taglib uri=" prefix="f" %> <html> <head> <title> </title> </head> <body> <h1> </h1> <f:view> <h:form id="listform"> <h:datatable id="table" border="1" value="#{booksearcher.booklist}" var="book"> <h:column> <f:facet name="header"> <h:outputtext value=" "/> </f:facet> <h:outputtext id="booktitle" value="#{book.title}"/> </h:column> 52

58 <h:column> <f:facet name="header"> <h:outputtext value=" "/> </f:facet> <h:outputtext id="bookauthor" value="#{book.author}"/> </h:column> </h:datatable> </h:form> </f:view> </body> </html> datatable h:datatable h:datatable (List, ) UI UI id border value Value Binding var value List booklist booklist BookData var book BookData Bean <h:datatable id="table" border="1" value="#{booksearcher.booklist}" var="book"> </h:datatable> h:column h:datatable h:column 7.4 h:datatable UI <h:datatable id="table" border="1" value="#{booksearcher.booklist}" var="book"> <h:column> <f:facet name="header"> <h:outputtext value=" "/> 53

59 7.4: h:column 54

60 </f:facet> <h:outputtext id="booktitle" value="#{book.title}"/> </h:column>... h:column f:facet h:outputtext f:facet UI name header footer <f:facet name="header"> <h:outputtext value=" "/> </f:facet> h:outputtext book (BookData Bean ) title <h:outputtext id="booktitle" value="#{book.title}"/> h:datatable h:datatable h:datatable h:datatable var var JavaBeans List BookData BookData Bean column column 7.5 datatable MyFaces 7.5 t:datatable t:datascroller list.jsp 14: list.jsp 55

61 56

62 page contenttype="text/html; charset=shift_jis" %> taglib uri=" prefix="h" %> taglib uri=" prefix="f" %> taglib uri=" prefix="t" %> <html> <head> <title> </title> </head> <body> <h1> </h1> <f:view> <h:form id="listform"> <h:inputtext id="searchword" value="#{booksearcher.word}" /> <h:commandbutton id="submit" action="#{booksearcher.searchbooks}" value=" " /> <hr /> <t:datatable id="booktable" border="1" rows="10" value="#{booksearcher.booklist}" var="book" > <h:column> <f:facet name="header"> <h:outputtext value=" "/> </f:facet> <h:outputtext id="booktitle" value="#{book.title}" /> </h:column> <h:column> <f:facet name="header"> <h:outputtext value=" "/> </f:facet> <h:outputtext id="bookauthor" value="#{book.author}" /> </h:column> </t:datatable> <t:datascroller id="scroll1" for="booktable" faststep="10" paginator="true" paginatormaxpages="9"> <f:facet name="first"> <h:graphicimage url="images/arrow-first.gif" /> </f:facet> <f:facet name="last"> <h:graphicimage url="images/arrow-last.gif" /> </f:facet> <f:facet name="previous"> <h:graphicimage url="images/arrow-previous.gif" /> </f:facet> <f:facet name="next"> 57

63 <h:graphicimage url="images/arrow-next.gif" /> </f:facet> <f:facet name="fastforward"> <h:graphicimage url="images/arrow-ff.gif" /> </f:facet> <f:facet name="fastrewind"> <h:graphicimage url="images/arrow-fr.gif" /> </f:facet> </t:datascroller> <t:datascroller id="scroll2" for="booktable" pagecountvar="pagecount" pageindexvar="pageindex"> <h:outputformat value="page{0}/{1}"> <f:param value="#{pageindex}" /> <f:param value="#{pagecount}" /> </h:outputformat> </t:datascroller> </h:form> </f:view> </body> </html> t:datatable JSP h:datatable t:datatable t:datatable h:datatable h:datatable datatable (t:datascroller) (t:commandsortheader) <t:datatable id="booktable" row="10" > </t:datatable> t:datatable rows datatable t:datascroller 7.5 t:datascroller Page 1/3 58

64 datascroller 15: datascroller <t:datascroller id="scroll1" for="booktable" faststep="10" paginator="true" paginatormaxpages="9"> <f:facet name="first"> <h:graphicimage url="images/arrow-first.gif" /> </f:facet> <f:facet name="last"> <h:graphicimage url="images/arrow-last.gif" /> </f:facet> <f:facet name="previous"> <h:graphicimage url="images/arrow-previous.gif" /> </f:facet> <f:facet name="next"> <h:graphicimage url="images/arrow-next.gif" /> </f:facet> <f:facet name="fastforward"> <h:graphicimage url="images/arrow-ff.gif" /> </f:facet> <f:facet name="fastrewind"> <h:graphicimage url="images/arrow-fr.gif" /> </f:facet> </t:datascroller> datascroller t:datascroller for datatable id t:datascroller f:facet f:facet f:facet datascroller <t:datascroller id="scroll2" for="booktable" pagecountvar="pagecount" pageindexvar="pageindex"> <h:outputformat value="page{0}/{1}"> <f:param value="#{pageindex}" /> <f:param value="#{pagecount}" /> </h:outputformat> </t:datascroller> datascroller Page 1/3 t:datascroller pagecountvar pageindexvar 59

65 t:datascroller h:outputformat value value="page{0}/{1}" {0} f:param value {1} f:param value pageindex / pagecount 60

66 8 Component Binding 8.1 (2) 8.1 JSF JSP h:datatable JavaBeans 8.3 h:commandlink JSP No.13 JSP 16: list.jsp page contenttype="text/html; charset=shift_jis" %> taglib uri=" prefix="h" %> taglib uri=" prefix="f" %> <html> <head> <title> </title> </head> <body> <h1> </h1> 61

67 8.1: 62

68 8.2: 63

69 <f:view> <h:form id="listform"> <h:datatable id="table" border="1" value="#{booksearcher.booklist}" var="book" binding="#{booksearcher.bookdatatable}"> <h:column> <f:facet name="header"> <h:outputtext value=" "/> </f:facet> <h:commandlink id="detail" action="#{booksearcher.searchbookdetail}"> <h:outputtext id="booktitle" value="#{book.title}"/> </h:commandlink> </h:column> <h:column> <f:facet name="header"> <h:outputtext value=" "/> </f:facet> <h:outputtext id="bookauthor" value="#{book.author}"/> </h:column> </h:datatable> </h:form> </f:view> </body> </html> h:outputtext h:commandlink h:commandbutton h:commandlink h:commandlink UI id h:commandbutton action Action Method h:outputtext Action Method outcome faces-config.xml <h:commandlink id="detail" action="#{booksearcher.searchbookdetail}"> <h:outputtext id="booktitle" value="#{book.title}"/> </h:commandlink> 64

70 8.4 Action Method Action Method Action Method h:datatable <h:datatable id="table" border="1" value="#{booksearcher.booklist}" var="book"... </h:datatable> h:datatable java.util.list java.util.iterator, JavaBeans UI JavaBeans h:datatable value h:datatable var book booklist java.util.list BookData h:datatable JavaBeans h:datatable var book BookData JavaBeans 8.5 Component Binding Component Binding Component Binding UI Managed Bean h:datatable Managed Bean BookSearcher.java UIData JSF datatable UIData public UIData getbookdatatable{ }; public void setbookdatatable(uidata d) {}; 65

71 h:datatable binding bookdatatable h:datatable datatable <h:datatable id="table" border="1" value="#{booksearcher.booklist}" var="book" binding="#{booksearcher.bookdatatable}"> 8.6 Action Method 17: BookSearcher.java import java.util.list; import java.util.arraylist; import java.util.map; import java.sql.*; import javax.sql.*; import javax.faces.component.uidata; public class BookSearcher { private UIData bookdatatable; private String word = ""; private String id = ""; private List list = null; private BookData book = null; public void setword(string word) { this.word = word; } public String getword() { return word; } public List getbooklist() { return list; } public BookData getbookdata() { return book; } public void setbookdatatable(uidata data) { 66

72 } bookdatatable = data; public UIData getbookdatatable() { return bookdatatable; } public String searchbooks() { searchbooks(word); return "success"; } public String searchbookdetail() { book = (BookData)bookDataTable.getRowData(); return "detail"; } private void searchbooks(string word) { list = new ArrayList(); try { Class.forName("org.hsqldb.jdbcDriver"); String url = "jdbc:hsqldb:hsql://localhost"; Connection con = DriverManager.getConnection(url, "sa", ""); String selectstatement = "select * " + "from books where ndc like? " + "or tyosya_hyouji like? " + "or id like? " + "or title like? " + "or author like? " + "or publisher like? "; PreparedStatement prepstmt = con.preparestatement(selectstatement); prepstmt.setstring(1, appendpercent(word)); prepstmt.setstring(2, appendpercent(word)); prepstmt.setstring(3, appendpercent(word)); prepstmt.setstring(4, appendpercent(word)); prepstmt.setstring(5, appendpercent(word)); prepstmt.setstring(6, appendpercent(word)); ResultSet rs = prepstmt.executequery(); while (rs.next()) { BookData book = new BookData(); book.setndc(rs.getstring("ndc")); book.settyosya_hyouji(rs.getstring("tyosya_hyouji")); book.setid(rs.getstring("id")); book.settitle(rs.getstring("title")); book.setauthor(rs.getstring("author")); book.setpublisher(rs.getstring("publisher")); 67

73 } list.add(book); } prepstmt.close(); } catch (ClassNotFoundException e) { e.printstacktrace(); } catch (SQLException e) { e.printstacktrace(); } private String appendpercent(string from) { StringBuffer to = new StringBuffer(); to.append("%"); to.append(from); to.append("%"); } } return new String(to); searchbookdetail Action Method Component Binding UIData bookdatatable book public String searchbookdetail() { book = (BookData)bookDataTable.getRowData(); return "detail"; } BookSearcher book book getbookdata bookdata 8.7 JSP JSP 18: detail.jsp <%@ page contenttype="text/html; charset=shift_jis" %> <%@ taglib uri=" prefix="h" %> <%@ taglib uri=" prefix="f" %> 68

74 <html> <head> <title> </title> </head> <body> <h1> </h1> <f:view> <table border="1"> <tr> <td>ndc</td> <td><h:outputtext value="#{booksearcher.bookdata.ndc}" /></td> </tr> <tr> <td> </td> <td><h:outputtext value="#{booksearcher.bookdata.tyosya_hyouji}" /></td> </tr> <tr> <td>id</td> <td><h:outputtext value="#{booksearcher.bookdata.id}" /></td> </tr> <tr> <td> </td> <td><h:outputtext value="#{booksearcher.bookdata.title}" /></td> </tr> <tr> <td> </td> <td><h:outputtext value="#{booksearcher.bookdata.author}" /></td> </tr> <tr> <td> </td> <td><h:outputtext value="#{booksearcher.bookdata.publisher}" /></td> </tr> </table> </f:view> </body> </html> BookSearcher Bean bookdata id 69

75 <li><h:outputtext value="#{booksearcher.bookdata.id}" /> 8.8 h:datatable Action Method Managed Bean h:datatable UIData Component Binding h:datatable h:datatable Component Binding UIData BookData Component Binding Action Method UI UI 70

76 JSF (Reference Implementation) h:inputtext Tomahawk Tomahawk (JSF MyFaces ) 71

77 9.1: ( 9.1) 9.2 ( 9.3) page1.jsp page1.jsp 72

78 図 9.2: バリデータに適合しなかった例 73

79 9.3: ( ) 74

80 19: page1.jsp page contenttype="text/html; charset=shift_jis" %> taglib uri=" prefix="h" %> taglib uri=" prefix="f" %> taglib uri=" prefix="t" %> <html> <head> <link href="style.css" type="text/css" rel="stylesheet" /> <title> </title> </head> <body> <h1> </h1> <f:view> <h:form id="form"> <h:panelgrid columns="3"> <f:facet name="header"> <h:outputtext value=" " /> </f:facet> <h:outputtext value=" ( )" /> <h:inputtext id="name" required="true" value="#{parameterbean.name}" /> <h:message for="name" styleclass="error" /> <h:outputtext value=" (5 )" /> <h:inputsecret id="password" value="#{parameterbean.password}"> <f:validatelength minimum="5" /> </h:inputsecret> <h:message for="password" styleclass="error" /> <h:outputtext value=" (1 10)" /> <h:inputtext id="quantity" value="#{parameterbean.quantity}"> <f:validatelongrange minimum="1" maximum="10"/> </h:inputtext> <h:message for="quantity" styleclass="error" /> <h:outputtext value=" ( )" /> <h:inputtext id=" " required="true" value="#{parameterbean. }"> <t:validate /> </h:inputtext> <h:message for=" " styleclass="error" /> <h:outputtext value=" " /> <h:inputtext id=" 2" required="true" value="#{parameterbean.another }"> <t:validateequal for=" " /> 75

81 </h:inputtext> <h:message for=" 2" styleclass="error" /> <h:outputtext value=" " /> <h:inputtext id="creditcardnumber" value="#{parameterbean.creditcardnumber}"> <t:validatecreditcard /> </h:inputtext> <h:message for="creditcardnumber" styleclass="error" /> <h:outputtext value=" ( : )" /> <h:inputtext id="zipnumber" value="#{parameterbean.zipnumber}"> <t:validateregexpr pattern= \d{3}-\d{4} /> </h:inputtext> <h:message for="zipnumber" styleclass="error" /> </h:panelgrid> <p> <h:commandbutton id="button" action="success" value="go!" /> </p> </h:form> </f:view> </body> </html> h:panelgrid JSP UI h:panelgrid <h:panelgrid columns="3"> <f:facet name="header"> <h:outputtext value=" " /> </f:facet> <h:outputtext... /> <h:inputtext... >... </h:inputtext> <h:message... />... </h:panelgrid> 76

82 f:facet h:datatable h:panelgrid columns UI columns 3 h:panelgrid h:outputtext, h:inputtext, h:message UI UI UI page2.jsp page2.jsp h:panelgrid h:panelgrid border : page2.jsp <%@ page contenttype="text/html; charset=shift_jis" %> <%@ taglib uri=" prefix="h" %> <%@ taglib uri=" prefix="f" %> <html> <head> <link href="style.css" type="text/css" rel="stylesheet" /> <title> </title> </head> <body> <h1> </h1> <f:view> <h:panelgrid border="1" columns="2"> <h:outputtext value=" " /> <h:outputtext id="name" value="#{parameterbean.name}" /> <h:outputtext value=" " /> <h:outputtext id="password" value="#{parameterbean.password}" /> <h:outputtext value=" " /> <h:outputtext id="quantity" value="#{parameterbean.quantity}" /> <h:outputtext value=" " /> 77

83 <h:outputtext id=" " value="#{parameterbean. }" /> <h:outputtext value=" " /> <h:outputtext id="card" value="#{parameterbean.creditcardnumber}" /> <h:outputtext value=" " /> <h:outputtext id="zip" value="#{parameterbean.zipnumber}" /> </h:panelgrid> <h:form> <h:commandbutton id="button" action="back" value=" " /> </h:form> </f:view> </body> </html> <h:outputtext value=" ( )" /> <h:inputtext id="name" required="true" value="#{parameterbean.name}" /> <h:message for="name" styleclass="error" /> h:inputtext required="true" required true h:inputtext h:inputtext h:message <h:message for="name" styleclass="error" /> 78

84 h:message UI for UI name id h:inputtext styleclass JSP JSP style.css <link href="style.css" type="text/css" rel="stylesheet" /> style.css.error { font-style: italic; color: red; } h:message styleclass error.error styleclass HTML UI <h:outputtext value=" (5 )" /> <h:inputsecret id="password" value="#{parameterbean.password}"> <f:validatelength minimum="5" /> </h:inputsecret> <h:message for="password" styleclass="error" /> h:inputsecret 79

85 f:validatelength 5 f:validatelength password id h:inputtext f:validatelength password id h:inputsecret f:validatelength maximum <f:validatelength maximum="10" /> <h:outputtext value=" (1 10)" /> <h:inputtext id="quantity" value="#{parameterbean.quantity}"> <f:validatelongrange minimum="1" maximum="10"/> </h:inputtext> <h:message for="quantity" styleclass="error" /> f:validatelongrange 1 10 <f:validatelongrange minimum="1" maximum="10"/> h:inputtext Managed Bean quantity Value Binding Managed Bean quantity getter setter public Integer getquantity() { return quantity; } public void setquantity(integer q) { quantity = q; } 80

86 String quantity Integer h:inputtext f:validatelongrange h:inputtext Integer h:inputtext h:outputtext Value Binding Managed Bean Java Integer Date Integer Date h:outputtext t:validate h:inputtext required true h:inputtext <h:outputtext value=" ( )" /> <h:inputtext id=" " required="true" value="#{parameterbean. }"> <t:validate /> </h:inputtext> <h:message for=" " styleclass="error" /> t:validateequal Web t:validateequal id h:inputtext 2 id h:inputtext 81

87 <h:outputtext value=" ( )" /> <h:inputtext id=" " required="true" value="#{parameterbean. }">... </h:inputtext>... <h:outputtext value=" " /> <h:inputtext id=" 2" required="true" value="#{parameterbean.another }"> <t:validateequal for=" " /> </h:inputtext> <h:message for=" 2" styleclass="error" /> t:validateequal 2 id h:inputtext <h:inputtext id=" 2" required="true" value="#{parameterbean.another }"> <t:validateequal for=" " /> </h:inputtext> t:validateequal for h:inputtext id t:validatecreditcard JCB JCB MyFaces Apache Software Foundation Jakarta Project Jakarta Commons t:validatecreditcard Jakarta Commons commons validator commons validator JCB 82

88 <h:outputtext value=" " /> <h:inputtext id="creditcardnumber" value="#{parameterbean.creditcardnumber}"> <t:validatecreditcard /> </h:inputtext> t:validateregexpr pattern \d{3}-\d{4} (0 9 ) - ( ) (0 9 ) <h:outputtext value=" ( : )" /> <h:inputtext id="zipnumber" value="#{parameterbean.zipnumber}"> <t:validateregexpr pattern= \d{3}-\d{4} /> </h:inputtext> JSF 83

89 10 JSF 10.1 UI UI JSF UI JSF JSF JSP JSF Java Java JSF guessnumber UI ( ) JSF Reference Implementation (RI) guessnumber guessnumber UI guessnumber 10.1 JSP JSP JSF <f:view> <h:form id="helloform"> <h:outputtext... /> <h:outputtext... /> <h:graphicimage... /> <h:inputtext... /> <h:commandbutton... /> <h:message... /> </h:form> </f:view> f:view h:form h:outputtext, h:graphicimage, h:inputtext, h:commandbutton, h:message 84

90 10.1: guessnumber JSP 85

91 UIViewRoot UIForm UIOuputText UIOuputText UIInputText UICommandButton UIMessage 10.2: guessnumber UI UI 10.2 JSP UI UI JSP 10.1 UI JSP UI JSP UI UI JSF 86

92 10.1: UI JSP Java JSP UIViewRoot UIForm UIOutputText UIInputText UICommandButton UIMessage f:view h:form h:outputtext h:inputtext h:commandbutton h:message HttpSession HTML hidden web.xml <context-param> <param-name> javax.faces.state_saving_method </param-name> <param-value>client</param-value> </context-param> 10.2 JSF JSF

93 JSF JSF Action Value Change UI 10.3 JSF JSF JSF Web (1) UI (2) UI (3) (4) UI Managed Bean (5) Action Method (6) UI 10.4 guessnumber guessnumber ( ) Duke ( 10.3 ) Web 0 10 Submit Web JSF 88

94 10.3: guessnumber 89

95 (1) Web JSF JSF JSF JSF Web JSF 1. UI 2. (6) JSF JSF 1. UI guessnumber UI (2) UI guessnumber 10.1 h:inputtext 9 UIInput h:commandbutton h:commandlink JSP h:commandbutton immediate true 90

96 (Managed Bean ) <h:commandbutton immediate="true" action="cancel" value=" " /> immediate false (5) immediate false Value Change <h:inputtext immediate="true" value="#{bean.quantity}" /> h:inputtext immediate true Managed Bean 4. Value Change immediate false Value Change (5) immediate false (3) Value Change (6) guessnumber Validator UserNumberBean.validate 91

97 (4) UI Managed Bean (6) Value Binding Managed Bean UI guessnumber h:inputtext Value Binding usernumber Integer Integer usernumber (5) Value Change Action Method guessnumber action faces-config.xml <h:commandbutton id="submit" action="success" value="submit" /> (6) UI (5) (3) (4) 1. 92

98 2. UI 3. Managed Bean UI 4. HTML 5. UI guessnumber 1. h:inputtext action faces-config.xml response.jsp 2. response.jsp Managed Bean response UI 3. UI HTML 93

サーブレット (Servlet) とは Web サーバ側で動作する Java プログラム 通常はapache 等のバックグラウンドで動作する Servletコンテナ上にアプリケーションを配置 代表的な Servlet コンテナ Apache Tomcat WebLogic WebSphere Gla

サーブレット (Servlet) とは Web サーバ側で動作する Java プログラム 通常はapache 等のバックグラウンドで動作する Servletコンテナ上にアプリケーションを配置 代表的な Servlet コンテナ Apache Tomcat WebLogic WebSphere Gla サーブレット 1 オブジェクト指向プログラミング特論 サーブレット (Servlet) とは Web サーバ側で動作する Java プログラム 通常はapache 等のバックグラウンドで動作する Servletコンテナ上にアプリケーションを配置 代表的な Servlet コンテナ Apache Tomcat WebLogic WebSphere GlassFish 2 オブジェクト指向プログラミング特論

More information

java_servlet2_見本

java_servlet2_見本 13 2 JSF Web 1 MVC HTML JSP Velocity Java 14 JSF UI PC GUI JSF Web 2.1 JSF JSF Web FORM FORM 2-1 JSF role, JSF JSF 15 Web JSF JSF Web Macromedia JSF JSF JSF 2.2 / Subscriber package com.mycompany.newsservice.models;

More information

はじめに

はじめに 1 Java Java J Java API 2004 1 JavaServer Faces JavaServer Faces JavaServer Faces JSF Java API JCP Java Community Process 127 JSR-127Java Specification Request 2004 3 JSF 1.0 5 JSF 1.1 JSF 1.1 JSF 1 Overview

More information

Part1 159 a a

Part1 159 a a Tomcat 158 Part1 159 a a Tomcat hello World!

More information

Gartner Day

Gartner Day J2EE 1 J2EE C AP 2 J2EE AP DD java *.class java *.class java *.class *.class DD EAR, WAR, JAR orionapplicationclient.xmweb.xmapplication.jar.xml orion- orion-ejb- ml Oracle Application Server 10g *.jsp

More information

Oracle JDeveloper 10g ADF Creation Date: Jul 07, 2004 Last Update: Jul 08, 2004 Version 1.0

Oracle JDeveloper 10g ADF Creation Date: Jul 07, 2004 Last Update: Jul 08, 2004 Version 1.0 Oracle JDeveloper 10g ADF Creation Date: Jul 07, 2004 Last Update: Jul 08, 2004 Version 1.0 ... 1... 2... 3... 5... 6... 6... 9... 9 Vector... 10 Struts... 12... 14 cart.jsp 1... 15 cart.jsp 2... 17 JSP...

More information

untitled

untitled Struts IT Open Source JavaEE Application Consulting Struts Open Source JavaWorld Jakarta 4 Jakarta/Apache Copyright(c) yukimitsu kurozumi 2007 All Rights Reserved. 2 1986 150 CAC OSS Consulting,, Web System

More information

WebOTXマニュアル

WebOTXマニュアル WebOTX アプリケーション開発ガイド WebOTX アプリケーション開発ガイドバージョン : 8.1 版数 : 第 3 版リリース : 2009 年 4 月 Copyright (C) 1998-2009 NEC Corporation. All rights reserved. 2-2-1 目次 2. Java EE...3 2.2. Webアプリケーション...3 2.2.1. Webアプリケーションを作成する...3

More information

WebOTXマニュアル

WebOTXマニュアル WebOTX アプリケーション開発ガイド WebOTX アプリケーション開発ガイドバージョン : 7.1 版数 : 初版リリース : 2007 年 7 月 Copyright (C) 1998-2007 NEC Corporation. All rights reserved. 3-1-1 目次 3. J2EE WTP...3 3.1. Webアプリケーション...3 3.1.1. Webアプリケーションを作成する...3

More information

Web JavaScript Java Applet Flash ActionScript CGI (C, perl, ruby ) PHP Servlet, JSP (JavaServer Pages) ASP 7-2

Web JavaScript Java Applet Flash ActionScript CGI (C, perl, ruby ) PHP Servlet, JSP (JavaServer Pages) ASP 7-2 Servlet 7-1 Web JavaScript Java Applet Flash ActionScript CGI (C, perl, ruby ) PHP Servlet, JSP (JavaServer Pages) ASP 7-2 Servlet Java CGI Tomcat Apache+Tomcat JSP Web HTML Java Java Servlet ( ) 7-3 Servlet

More information

9iAS_DEV.PDF

9iAS_DEV.PDF Oracle9i Application Server for Windows NT 1.0.2.0.0 2001.2.1 1 1 PL/SQL...3 1.1...3 1.2 PL/SQL Web Toolkit...5 1.3 Database Access Descriptor...6 1.4 PL/SQL...8 1.5 PL/SQL...10 1.6 PL/SQL...12 2 SERVLET...13

More information

Java EE 7 アプリケーション設計ガイド - JSF(JavaServer Faces) 2.2 入門編

Java EE 7 アプリケーション設計ガイド - JSF(JavaServer Faces) 2.2 入門編 Java EE 7 アプリケーション設計ガイド - JSF(JavaServer Faces) 2.2 入門編 日本アイ ビー エムシステムズ エンジニアリング株式会社 1 Disclaimer この資料は日本アイ ビー エム株式会社ならびに日本アイ ビー エムシステムズ エンジニアリング株式会社の正式なレビューを受けておりません 当資料は 資料内で説明されている製品の仕様を保証するものではありません

More information

B2-Servlet-0112.PDF

B2-Servlet-0112.PDF B-2 Servlet/JSP Agenda J2EE Oracle8i J2EE Java Servlet JavaServer Pages PDA ( J2EE Java2 Enterprise Edition API API J2SE JSP Servlets RMI/IIOP EJB JNDI JTA JDBC JMS JavaMail JAF Java2 Standard Edition

More information

JBoss jBPM 3.1 プログラミング入門

JBoss jBPM 3.1 プログラミング入門 JBoss jbpm 3.1 2007 4 24 2007 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Hello World Hello World web web GPD web 2 19 4 25 HelloWorld

More information

HTML Java Tips dp8t-asm/java/tips/ Apache Tomcat Java if else f

HTML Java Tips   dp8t-asm/java/tips/ Apache Tomcat Java if else f 1 Servlet 1.1 Web Web WWW HTML CGI Common Gateway InterfaceWeb HTML Web Web CGI CGI CGI Perl C Java Applet JavaScript Web CGI HTML 1.2 Servlet Java Servlet Servlet CGI Web CGI 1 Java / Java Java CGI Servlet

More information

Microsoft Word - migrateto10g2.doc

Microsoft Word - migrateto10g2.doc Oracle JDeveloper 10g 9.0.5/10.1.2 JDeveloper Creation Date: Feb. 9, 05 Last Update: Jul. 27, 05 Version: 1.1 = ... 4... 4 JDeveloper... 5... 5 Web... 6... 7... 8... 8 JDeveloper... 10... 10... 11... 19...

More information

Web Tomcat MapDataManager i

Web Tomcat MapDataManager i Tomcat EWEB-4K-N013 Web Tomcat MapDataManager i 1... 1 2 Tomcat4.1.29... 2 2.1 Tomcat... 2 2.2 Apache1.3.29... 3 2.3 IIS5.0... 7 3 FAQ...10 3.1 ISAPI...10 ii 1 Java JDK1.3.1 J2SDK1.4.0 JDK JSDK 1-1 JDK

More information

HTML Java Tips dp8t-asm/java/tips/ Apache Tomcat Java if else f

HTML Java Tips   dp8t-asm/java/tips/ Apache Tomcat Java if else f 1 Servlet 1.1 Web Web WWW HTML CGI Common Gateway InterfaceWeb HTML Web Web CGI CGI CGI Perl C Java Applet JavaScript Web CGI HTML 1.2 Servlet Java Servlet Servlet CGI Web CGI 1 Java / Java Java CGI Servlet

More information

WebOTXマニュアル

WebOTXマニュアル WebOTX アプリケーション開発ガイド WebOTX アプリケーション開発ガイドバージョン : 7.1 版数 : 第 2 版リリース : 2010 年 1 月 Copyright (C) 1998-2010 NEC Corporation. All rights reserved. 4-1-1 目次 4. J2EE WebOTX...3 4.1. Webアプリケーション...3 4.1.1. Webアプリケーションを作成する...3

More information

Oracle9i JDeveloper R9.0.3 チュートリアル

Oracle9i JDeveloper R9.0.3 チュートリアル Oracle9i JDeveloper 9.0.3 JavaServer Pages Creation Date: Jan. 27, 03 Last Update: Feb. 13, 03 Version: 1.0 ... 2... 2... 2 JDeveloper JSP... 3... 4 JSP... 5 JSP... 6... 7...10 JDeveloper... 12 TLD...

More information

Web 1 p.2 1 Servlet Servlet Web Web Web Apache Web Servlet JSP Web Apache Tomcat Jetty Apache Tomcat, Jetty Java JDK, Eclipse

Web 1 p.2 1 Servlet Servlet Web Web Web Apache Web Servlet JSP Web Apache Tomcat Jetty Apache Tomcat, Jetty Java JDK, Eclipse Web 1 p.1 1 Servlet 1.1 Web Web WWW HTML CGI Common Gateway Interface Web HTML Web Web CGI CGI CGI Perl, PHP C Java Applet JavaScript Web CGI HTML 1.2 Servlet Java Servlet Servlet CGI Web CGI 1 Java Java

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション Oracle Application Server 10g (10.1.2) Oracle Application Server10g(10.1.2) : data-sources.xml WAR (Web ) : orion-web.xml JAR (Enterprise JavaBeans) : orion-ejb-jar.xml EAR ( ) : orion-application.xml

More information

Oracle9i JDeveloperによるWebサービスの構築

Oracle9i JDeveloperによるWebサービスの構築 Oracle9i JDeveloper Web Web Web Web Web Web EJB Web EJB Web Web Oracle9iAS Apache SOAP WSDL Web Web Web Oracle9i JDeveloper Java XML Web Web Web Web Simple Object Access Protocol SOAP :Web Web Services

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション 1 2 3 4 HTML 5 HTML 6 7 8 9 ( ) 10 11 ( ) Switch(state) case STATE_xxxx : int op_state = opponent.getstate(); switch (op_state) { case STATE_yyyy : < > player.setstate(state_zzzz); 12 13 14 15 16 17 request

More information

XMLアクセス機能説明書

XMLアクセス機能説明書 SolarisTM Solaris Microsoft Windows NT Server network operating system Version 4.0 Windows NT Microsoft Windows 2000 Server operating systemmicrosoft Windows 2000 Advanced Server operating system Windows

More information

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV tutimura@mist.i.u-tokyo.ac.jp kaneko@ipl.t.u-tokyo.ac.jp http://www.misojiro.t.u-tokyo.ac.jp/ tutimura/sem3/ 2002 12 11 p.1/33 10/16 1. 10/23 2. 10/30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20

More information

Spring Framework Web Web Web DB AOP DI Java EE 3 Web WebMVC Web Java 4 DB H2 Database Java H2 Database http://www.h2database.com/ Version 1.0 Zip 5 H2 > cd $H2_HOME/bin > java cp h2.jar org.h2.tools.server

More information

CONTENTS 0 /JSP 13 0.1 Web 14 1 HTML Web 21 1.1 Web HTML 22 1.2 HTML 27 1.3 Web 33 1.4 HTML 43 1.5 46 1.6 47 1.7 48 2 Web 51 2.1 Web 52 2.2 Web 54 2.3 Web 59 2.4 65 2.5 68 2.6 75 2.7 76 2.8 77 3 81 3.1

More information

1 1 3 1.1 Web............................ 3 1.2 Servlet/JSP.................................. 3 2 JSP 7 2.1................................... 7 2.2..

1 1 3 1.1 Web............................ 3 1.2 Servlet/JSP.................................. 3 2 JSP 7 2.1................................... 7 2.2.. Servlet/JSP 1 1 3 1.1 Web............................ 3 1.2 Servlet/JSP.................................. 3 2 JSP 7 2.1................................... 7 2.2........................................

More information

BC4J...4 BC4J Association JSP BC4J JSP OC4J

BC4J...4 BC4J Association JSP BC4J JSP OC4J lê~åäévá=gaéîéäçééê= 9.0.3/9.0.4 BC4J Creation Date: Oct 08, 2003 Last Update: Feb 27, 2004 Version 1.0 ...3... 3 BC4J...4 BC4J...4... 4... 5... 6...7... 8... 9 Association... 13... 15... 20... 22... 25

More information

<4D F736F F D20566F F6E658C6791D FE382C582CC4A D834F E F8F4390B394C52E646F63>

<4D F736F F D20566F F6E658C6791D FE382C582CC4A D834F E F8F4390B394C52E646F63> imai@eng.kagawa-u.ac.jp (Tel: 087-864-2244(FAX )) Vodafone( J-Phone) (J-SA51 090-2829-9999) JavaTM ( Vappli ) SUN ( SUN ) Java2SE(J2SDK1.3.1 Java Standard Edition) Java2MEforCLDC(WTK1.04 Wireless Tool

More information

II 1 p.1 1 Servlet 1.1 Web Web WWW HTML CGI Common Gateway Interface Web HTML Web Web CGI CGI CGI Perl, PHP C JavaScript Web CGI HTML 1.2 Servlet Java

II 1 p.1 1 Servlet 1.1 Web Web WWW HTML CGI Common Gateway Interface Web HTML Web Web CGI CGI CGI Perl, PHP C JavaScript Web CGI HTML 1.2 Servlet Java II 1 p.1 1 Servlet 1.1 Web Web WWW HTML CGI Common Gateway Interface Web HTML Web Web CGI CGI CGI Perl, PHP C JavaScript Web CGI HTML 1.2 Servlet Java Servlet Servlet CGI Web CGI Java Java JVM Java CGI

More information

スライド 1

スライド 1 Web プログラミング 2 7. JSP と Servlet による Web プログラミング概要 ( 復習 )Web アプリケーションの実現方式 : 授業で扱う範囲 SSI (Server Side Include) C-Shellなど JSP (Java Server Pages) PHP など Web ブラウザ Internet Done Web サーバ Done JavaApplet JavaScript

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション Java J2EE Spring Spring Dependency Injection AOP Java J2EE 2 4 Application Java Enterprise API 5 6 mod_jk2 AJP13 Coyote/JK2 Connector Session Apache2 Tomcat5-a AJP13 Coyote/JK2 Connector Session Tomcat5-b

More information

"CAS を利用した Single Sign On 環境の構築"

CAS を利用した Single Sign On 環境の構築 CAS Single Sign On (Hisashi NAITO) naito@math.nagoya-u.ac.jp Graduate School of Mathematics, Nagoya University naito@math.nagoya-u.ac.jp, Oct. 19, 2005 Tohoku Univ. p. 1/40 Plan of Talk CAS CAS 2 CAS Single

More information

ii II Web Web HTML CSS PHP MySQL Web Web CSS JavaScript Web SQL Web 2014 3

ii II Web Web HTML CSS PHP MySQL Web Web CSS JavaScript Web SQL Web 2014 3 Web 2.0 Web Web Web Web Web Web Web I II I ii II Web Web HTML CSS PHP MySQL Web Web CSS JavaScript Web SQL Web 2014 3 1. 1.1 Web... 1 1.1.1... 3 1.1.2... 3 1.1.3... 4 1.2... 4 I 2 5 2. HTMLCSS 2.1 HTML...

More information

JB_weblogic_guide.indd

JB_weblogic_guide.indd WebSphere JBoss Enterprise Application Platform WebSphere JBoss Enterprise Application Platform www.jp.redhat.com/jboss 1. 3 3 4 2. 4 4 5 7 9 14 19 3. 20 20 I 21 II 21 III 23 IV 25 V 26 4. 26 26 27 30

More information

ユニット・テストの概要

ユニット・テストの概要 2004 12 ... 3... 3... 4... 5... 6... 6 JUnit... 6... 7 Apache Cactus... 7 HttpUnit/ServletUnit... 8 utplsql... 8 Clover... 8 Anthill Pro... 9... 10... 10... 10 SQL... 10 Java... 11... 11... 12... 12 setter

More information

Java DataBase Connectivity Sun ONE Studio 4 Sun Microsystems, Inc Network Circle Santa Clara, CA U.S.A Part No

Java DataBase Connectivity Sun ONE Studio 4 Sun Microsystems, Inc Network Circle Santa Clara, CA U.S.A Part No Java DataBase Connectivity Sun ONE Studio 4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. 650-960-1300 Part No. 817-0840-10 2002 9 Revision A Copyright 2002 Sun Microsystems,

More information

実行形式の作成と構成管理 2012 年 7 月 8 日 海谷治彦 1

実行形式の作成と構成管理 2012 年 7 月 8 日 海谷治彦 1 実行形式の作成と構成管理 2012 年 7 月 8 日 海谷治彦 1 動機付け 大多数の人はプログラムは実行するだけ. プログラム単体で実行できないと困る. 毎回,Eclipse を立ち上げていては困る. 実行可能ファイルの作成 Java に限らず通常, 多数のソースファイル, 外部ライブラリから実行ファイルは構成される. 修正毎に手作業でコンパイルするのはつらい. 開発時と実行時の環境の違い 特に外部ライブラリの配置は開発者マシンと利用者のマシンとでは異なる場合が多い.

More information

... 2 1 Servlet... 3 1.1... 3 1.2... 4 2 JSP... 6 2.1... 6 JSP... 6... 8 2.2... 9 - Servlet/JSP における 日 本 語 の 処 理 - 1

... 2 1 Servlet... 3 1.1... 3 1.2... 4 2 JSP... 6 2.1... 6 JSP... 6... 8 2.2... 9 - Servlet/JSP における 日 本 語 の 処 理 - 1 Servlet/JSP Creation Date: Oct 18, 2000 Last Update: Mar 29, 2001 Version: 1.1 ... 2 1 Servlet... 3 1.1... 3 1.2... 4 2 JSP... 6 2.1... 6 JSP... 6... 8 2.2... 9 - Servlet/JSP における 日 本 語 の 処 理 - 1 Servlet

More information

intra-mart マスカット連携ガイド

intra-mart マスカット連携ガイド intra-mart マスカット連携ガイド Version 6.1 第三版 2008 年 1 月 31 日 > 変更年月日変更内容 2007/7/31 初版 2007/8/31 第二版以下の説明を追加 3.1.2.2 初期表示時のアクション 3.2.2.2 初期表示時のアクション 2008/1/31 第三版 3.3 デバック を追加 目次 > 1 はじめに...3

More information

Microsoft PowerPoint - Lecture_3

Microsoft PowerPoint - Lecture_3 プログラミング III 第 3 回 : サーブレットリクエスト & サーブレットレスポンス処理入門 Ivan Tanev 講義の構造 1. サーブレットの構造 2. サーブレットリクエスト サーブレットレスポンスとは 3. 演習 2 Lecture2_Form.htm 第 2 回のまとめ Web サーバ Web 1 フォーム static 2 Internet サーブレ4 HTML 5 ットテキスト

More information

http://localhost:8080 /idoapp/helloworld server-ido request HTML ttp://localhost:8080 /idoapp/helloworld ):8080 /idoapp/helloworld http://(ip import java.io.*; import javax.servlet.*; import javax.servlet.http.*;

More information

Java Platform Debugger Architecture Apache JServ Oracle JVM JPDA JVM Tomcat Oracle JVM... 7

Java Platform Debugger Architecture Apache JServ Oracle JVM JPDA JVM Tomcat Oracle JVM... 7 Oracle JDeveloper 3.1 Servlet/JSP 1... 2 1.1... 2 2 Java Platform Debugger Architecture... 3 3 Apache JServ... 5 3.1 Oracle JVM... 5 3.2 JPDA JVM... 5 4 Tomcat... 7 4.1 Oracle JVM... 7 4.2 JPDA JVM...

More information

tkk0408nari

tkk0408nari SQLStatement Class Sql Database SQL Structured Query Language( ) ISO JIS http://www.techscore.com/tech/sql/02_02.html Database sql Perl Java SQL ( ) create table tu_data ( id integer not null, -- id aid

More information

メディプロ1 Javaサーブレット補足資料.ppt

メディプロ1 Javaサーブレット補足資料.ppt メディアプロジェクト演習 1 Java サーブレット補足資料 CGI の基本 CGI と Java サーブレットの違い Java サーブレットの基本 インタラクティブな Web サイトとは Interactive q 対話 または 双方向 q クライアントとシステムが画面を通して対話を行う形式で操作を行っていく仕組み 利用用途 Web サイト, シミュレーションシステム, ゲームなど WWW = インタラクティブなメディア

More information

Javaで体験するスクリプト言語の威力

Javaで体験するスクリプト言語の威力 Java IT http://www.arclamp.jp Java Scripting API JSR223 JavaScript ECMAScript Groovy J2EE Project Phobos Sarugau JS 2 Java Scripting API JSR223 1/3 JavaVM Java JCP Java Community Process JSR 223: Scripting

More information

2 Java 35 Java Java HTML/CSS/JavaScript Java Java JSP MySQL Java 9:00 17:30 12:00 13: 項目 日数 時間 習得目標スキル Java 2 15 Web Java Java J

2 Java 35 Java Java HTML/CSS/JavaScript Java Java JSP MySQL Java 9:00 17:30 12:00 13: 項目 日数 時間 習得目標スキル Java 2 15 Web Java Java J 1 2018 4 Java 35 35 262.5 30 1 1 1,045,300 653,300 656,000 2017 12 389,300 2,700 2 946,900 554,900 290,900 101,100 1 2 Java Java Java Web Eclipse Java List Set Map StringBuilder HTML/CSS/JavaScript JSP/Servlet

More information

Microsoft PowerPoint - Lecture_2

Microsoft PowerPoint - Lecture_2 プログラミング Java III 第 2 回 :WebForm および サーブレット入門 Ivan Tanev 講義の構造 1. ダイナミックWebコンテンツとサーブレット 2.Webフォーム 3. 演習 2 1. ダイナミック Web コンテンツとサーブレット 3 1. ダイナミック Web コンテンツとサーブレット Internet Response: HTML テキスト ユーザー 4 1. ダイナミック

More information

JavaScript の使い方

JavaScript の使い方 JavaScript Release10.5 JavaScript NXJ JavaScript JavaScript JavaScript 2 JavaScript JavaScript JavaScript NXJ JavaScript 1: JavaScript 2: JavaScript 3: JavaScript 4: 1 1: JavaScript JavaScript NXJ Static

More information

Microsoft PowerPoint - JavaFesta.ppt

Microsoft PowerPoint - JavaFesta.ppt DI コンテナ Spring Framework による 次世代 Java EE アプリケーション開発 河村嘉之 日立ソフト研究部技師 / ソリューションアーキテクト Copyright Hitachi Softweare 2005 Engineering Hitachi Co., Software Ltd. 2004 Engineering All rights reserved. Co., Ltd.

More information

// JDBC // CallableStatement cs = null; try { cs = conn.preparecall("{call DUMMY_PROC(?,?)}"); cs.setstring(1, "This is a test"); cs.registeroutparame

// JDBC // CallableStatement cs = null; try { cs = conn.preparecall({call DUMMY_PROC(?,?)}); cs.setstring(1, This is a test); cs.registeroutparame // JDBC // CallableStatement cs = null; try { cs = conn.preparecall("{call DUMMY_PROC(?,?)"); cs.setstring(1, "This is a test"); cs.registeroutparameter(2, Types.VARCHAR); cs.executequery(); // String

More information

スライド 1

スライド 1 CloudFoundry ( vcap ) 上で JRuby でアプリを動かす 2012/01/19 ( 木 ) 第 4 回 CloudFoundry 輪読会 原嘉彦 ( goronyanko.h@gmail.com ) 自己紹介 何者? : 原嘉彦 ( Yoshihiko Hara ) twitter GORO_Neko mail goronyanko.h@gmail.com 日頃何やってるヒト?

More information

untitled

untitled Java EE EJB SOA 2007 11 2 Java Java Java (JJUG) Java http://www.java-users.jp/ Java JJUG 2007 Fall 11 6 ( ) http://www.javausers.jp/contents/events/ccc2007fall/ EJB SOA EJB SOA IT EoD IT X-Over Development

More information

java_servlet2_見本

java_servlet2_見本 1 1 JavaServer Faces JavaWebJavaWeb JSP Web Web HTMLGUI JSPHTTP AWT Swing Java GUI Web WebGUI EnhydraBarracudaApache TapestryOracle UIXSun JATO 2001 JavaJava Community Process, JCP Web JavaServer Faces

More information

Servlet/JSP ( 作成中 ) 2010 年 x 月 x 日作成 Firebird 日本ユーザー会 Naoyuki Sano 1

Servlet/JSP ( 作成中 ) 2010 年 x 月 x 日作成 Firebird 日本ユーザー会 Naoyuki Sano     1 Servlet/JSP ( 作成中 ) 2010 年 x 月 x 日作成 Firebird 日本ユーザー会 Naoyuki Sano http://rururu.sakura.ne.jp/ http://rururublog.sblo.jp/ 1 Servlet/JSP を教わった人 2004/9/25-2005/5/21 秦崇 [ はたたかし ] さん (http:// 秦崇.jp/) 2009

More information

... 1... 2... 2... 2... 4... 4... 5 HTML/JSP/Servlet... 7 JSP... 7 Servlet... 11 Struts... 15 Struts... 15 Struts... 16... 17... 25 FormBean LoginForm

... 1... 2... 2... 2... 4... 4... 5 HTML/JSP/Servlet... 7 JSP... 7 Servlet... 11 Struts... 15 Struts... 15 Struts... 16... 17... 25 FormBean LoginForm Oracle JDeveloper 10g Struts Creation Date: May 28, 2004 Last Update: Aug 19, 2004 Version 1.0.1 ... 1... 2... 2... 2... 4... 4... 5 HTML/JSP/Servlet... 7 JSP... 7 Servlet... 11 Struts... 15 Struts...

More information

intra-mart Accel Platform — イベントナビゲータ 開発ガイド   初版   None

intra-mart Accel Platform — イベントナビゲータ 開発ガイド   初版   None クイック検索検索 目次 Copyright 2013 NTT DATA INTRAMART CORPORATION 1 Top 目次 intra-mart Accel Platform イベントナビゲータ開発ガイド初版 2013-07-01 None 改訂情報概要イベントフローの作成 更新 削除をハンドリングするイベントフローを非表示にする回答を非表示にするリンクを非表示にするタイトル コメントを動的に変更するリンク情報を動的に変更するナビゲート結果のリンクにステータスを表示する

More information

新・明解Java入門

新・明解Java入門 537,... 224,... 224,... 32, 35,... 188, 216, 312 -... 38 -... 38 --... 102 --... 103 -=... 111 -classpath... 379 '... 106, 474!... 57, 97!=... 56 "... 14, 476 %... 38 %=... 111 &... 240, 247 &&... 66,

More information

s

s s073083 23 3 17 1 2 1.1.............................. 2 1.2.............................. 2 1.3.............................. 3 2 4 2.1........................... 4 2.2 Google App Engine........................

More information

intra-mart Accel Platform — イベントナビゲータ 開発ガイド   初版  

intra-mart Accel Platform — イベントナビゲータ 開発ガイド   初版   Copyright 2013 NTT DATA INTRAMART CORPORATION 1 Top 目次 intra-mart Accel Platform イベントナビゲータ開発ガイド初版 2013-07-01 改訂情報概要イベントフローの作成 更新 削除をハンドリングするイベントフローを非表示にする回答を非表示にするリンクを非表示にするタイトル コメントを動的に変更するリンク情報を動的に変更するナビゲート結果のリンクにステータスを表示する

More information

第13回講義

第13回講義 オブジェクト指向概論 第 13 講 実装とサーバサイド Java 立命館大学 情報理工学部 黄宏軒 1 13.1 Java による実装 n フォワードエンジニアリング UML による表現をプログラミング言語による記述に変換 n リバースエンジニアリング UML User -name:string +getname():string プログラミング言語の情報を UML モデルに変換 UML User

More information

intra-mart im-J2EE Framework

intra-mart im-J2EE Framework intra-mart im-j2ee Framework Version 5.1 Struts 連携ガイド 初版 2005 年 12 月 27 日 変更年月日 2005/12/28 初版 > 変更内容 目次 > 1 はじめに...3 1.1 目的...3 2 Strutsのインストール...3 2.1 Struts...3 2.1.1 Struts の組込み...3

More information

intra-mart BaseModule/Framework

intra-mart BaseModule/Framework CSV XML 2007 1 18 2007/1/18 CSV XML 1...6 1.1...6 1.2...6 1.3...6 1.4...7 2...8 2.1...8 2.1.1 csv2xml.properties...8 2.1.2...8 2.1.2.1 config.xml...8 2.1.2.2 encoding.xml...8 2.1.2.3 logging.properties...8

More information

TopLink È... 3 TopLink...5 TopLink åø... 6 TopLink å Workbench O/R ~... 8 Workbench À ~... 8 Foundation Library å... 8 TopL

TopLink È... 3 TopLink...5 TopLink åø... 6 TopLink å Workbench O/R ~... 8 Workbench À ~... 8 Foundation Library å... 8 TopL lê~åäé= qçéiáåâ= NMÖENMKNKPF Volume1 Creation Date: Mar 04, 2005 Last Update: Aug 23, 2005 Version 1.0 ...3... 3 TopLink 10.1.3 È... 3 TopLink...5 TopLink åø... 6 TopLink å... 7... 8 Workbench O/R ~...

More information

intra-mart im-J2EE Framework

intra-mart im-J2EE Framework intra-mart im-j2ee Framework Version 5.0 Struts 連携ガイド 第 2 版 2005 年 7 月 8 日 > 変更年月日変更内容 2005/06/02 初版 2005/07/08 第 2 版 以下の節を追加 2 Strutsのインストール 付録 B 変更内容 サンプルの一部を廃止 Struts 1.2.7 対応 目次 >

More information

intra-mart WebPlatform/AppFramework

intra-mart WebPlatform/AppFramework intra-mart WebPlatform/AppFramework Ver.7.2 Seasar2 連携プログラミングガイド 2010/04/01 初版 変更年月日 2010/04/01 初版 > 変更内容 目次 > 1 はじめに...1 1.1 目的...1 1.2 Seasar2 プロダクト...1 2 セットアップ...2 2.1 トランザクションマネージャとデータソース...2

More information

Slide 1

Slide 1 Oracle WebLogic Server 12c ハンズオン Fusion Middleware 事業統括本部ビジネス推進本部製品戦略部担当シニアマネジャー 新井庸介 以下の事項は 弊社の一般的な製品の方向性に関する概要を説明するものです また 情報提供を唯一の目的とするものであり いかなる契約にも組み込むことはできません 以下の事項は マテリアルやコード

More information

スライド 1

スライド 1 Jameleon 2007130 Agenda Jameleon Jameleon Jameleon a) b) c) d) e) f) g) h) i) Jameleon Jameleon http://jameleon.sourceforge.net/ 200612123.3-M4 GNU Lesser General Public LicenseGNU LGPL Jameleon JUnit

More information

TopLink å SampleClient.java... 5 Ò readallsample() querysample() cachesample() Ç..

TopLink å SampleClient.java... 5 Ò readallsample() querysample() cachesample() Ç.. lê~åäé= qçéiáåâ= NMÖENMKNKPF Volume2 Creation Date: Mar 04, 2005 Last Update: Aug 22, 2005 Version 1.0 ...3... 3 TopLink å...4 1... 4... 4 SampleClient.java... 5 Ò... 8... 9... 10 readallsample()... 11

More information

1 ex01.sql ex01.sql ; user_id from (select user_id ;) user_id * select select (3+4)*7, SIN(PI()/2) ; (1) select < > from < > ; :, * user_id user_name

1 ex01.sql ex01.sql ; user_id from (select user_id ;) user_id * select select (3+4)*7, SIN(PI()/2) ; (1) select < > from < > ; :, * user_id user_name SQL mysql mysql ( mush, potato) % mysql -u mush -p mydb Enter password:****** mysql>show tables; usertable mysql> ( ) SQL (Query) : select < > from < > where < >; : create, drop, insert, delete,... ; (

More information

World Wide Web =WWW Web ipad Web Web HTML hyper text markup language CSS cascading style sheet Web Web HTML CSS HTML

World Wide Web =WWW Web ipad Web Web HTML hyper text markup language CSS cascading style sheet Web Web HTML CSS HTML Web 工学博士大堀隆文 博士 ( 工学 ) 木下正博 共著 World Wide Web =WWW Web ipad Web Web HTML hyper text markup language CSS cascading style sheet Web Web HTML CSS HTML ii HTML CSS CSS HTML HTML HTML HTML Eclipse Eclipse Eclipse

More information

II 2 p.2 2 GET POST form action URL Aisatsu 2.1 Servlet GET GET : Query String QueryStringTest.java 1 import java.io.ioexception; 2 import java.io.pri

II 2 p.2 2 GET POST form action URL Aisatsu 2.1 Servlet GET GET : Query String QueryStringTest.java 1 import java.io.ioexception; 2 import java.io.pri II 2 p.1 2 GET POST Servlet Servlet Servlet CGI/Servlet GET POST 2 GET URL? FORM GET : http://maps.google.co.jp/maps?hl=ja&ll=34.292821,134.063587&z=15 POST HTML HTML : Aisatsu.html HTML 1

More information

プレポスト【問題】

プレポスト【問題】 コース名 : サーブレット /JSP/JDBC プログラミング ~Eclipse による開発 ~ 受講日 氏名 1 JDBC の説明として 間違っているものを 1 つ選びなさい 1. JDBC を使用してデータベースへアクセスするときには JDBC API が必要である 2. JDBC API は java.lang パッケージとして提供されている 3. JDBC には JDBC API JDBC

More information

BlueJ 2.0.1 BlueJ 2.0.x Michael Kölling Mærsk Institute University of Southern Denmark Toin University of Yokohama Alberto Palacios Pawlovsky 17 4 4 3 1 5 1.1 BlueJ.....................................

More information

intra-mart WebPlatform/AppFramework

intra-mart WebPlatform/AppFramework intra-mart WebPlatform/AppFramework Ver.7.0 Seasar2 連携プログラミングガイド 2010/11/30 第 3 版 > 変更年月日変更内容 2008/07/07 初版 2009/02/27 第 2 版 3.1.2.1.1 im_hotdeploy.diconの設定 を追加 2010/11/30 第 3 版 3.1.2.2 Hot deploy

More information

intra-mart im-J2EE Framework

intra-mart im-J2EE Framework intra-mart im-j2ee Framework Struts ver 0.1 2003 3 31 2003/03/31 ver 0.1 1...1 1.1...1 1.2...1 1.3...1 2...2 2.1 Struts...2 2.1.1 struts.jar...2 2.1.2...2 2.2 im-j2ee Framework Extension for Struts...2

More information

Network Computing の基礎

Network Computing の基礎 CSS Cascading Style Sheets Cascading = Style Sheets = CSS WEB HTML CSS 2 HTML h1 p CSS 3 CSS CSS HTML sample1.html CSS HTML sample2.html CSS CSS sample2.css CSS

More information

演習室の PC のハードディスクには演習で作成したデータは保管できません 各 PC の ネットワーク接続 ショートカットからメディア情報センターのサーバーにアクセスしてください (Z ドライブとして使用できます ) 講義で使うフォルダ 2/23

演習室の PC のハードディスクには演習で作成したデータは保管できません 各 PC の ネットワーク接続 ショートカットからメディア情報センターのサーバーにアクセスしてください (Z ドライブとして使用できます ) 講義で使うフォルダ 2/23 Web データ管理 CGI (3 章 ) 2011/11/30( 水 ) 1/23 演習室の PC のハードディスクには演習で作成したデータは保管できません 各 PC の ネットワーク接続 ショートカットからメディア情報センターのサーバーにアクセスしてください (Z ドライブとして使用できます ) 講義で使うフォルダ 2/23 CGI とは Common Gateway Interface の略 通常のページでは

More information

JTS Google App Engine S119325

JTS Google App Engine S119325 JTS Google App Engine S119325 1 3 1.1.............................. 3 1.2.............................. 3 1.3.............................. 4 2 Google App Engine 5 2.1 Google App Engine.....................

More information

講座計画書サンプル

講座計画書サンプル 2004 10 1 13:0014:30 12 () () Web 14:4518:00 - (PBL) 45 1 - - 1 1 - - - - Web - Web Web (1) PC (2) (3) (4) CVS Subversion 1 2 2004 10 8 Java Java Java 13:0014:30 Java Java Java EoD (Ease of Development)

More information

Web JDBC JDBC Java JDBC DataBase Web CHtmlView...

Web JDBC JDBC Java JDBC DataBase Web CHtmlView... Web-DB 13 1... 3 2 Web... 4 2.1 JDBC...4 2.1.1 JDBC...4 2.1.2 Java JDBC...5 2.1.3 DataBase...5 2.1.4...6 2.1.5...6 2.2...6 2.3 Web...10 3... 15 3.1 CHtmlView...15 3.2...16 3.2.1...16 3.2.2...16 3.2.3...17

More information

新・明解Java入門

新・明解Java入門 第 1 章 画面 文字 表示 Java Java Java Java Java JRE Java JDK 21 1-1 Java Java Java Java 誕生 Fig.1-1 Oak Java Sun Microsystems 2010 Oracle Java Oracle 4 Java http://www.java.com/ http://www.alice.org/ Fig.1-1Java

More information

PowerPoint Presentation

PowerPoint Presentation プログラミング Java III 第 4 回 : サーブレットの HTTP Request の処理 Ivan Tanev 講義の構造 1. サーブレットの HTTP Request の処理 2. 演習 2 第 3 回のまとめ Internet Explorer のアドレス バー : http://isd-si.doshisha.ac.jp/teaching/programming_3/xxxxxxxx/lecture3_form1.html

More information

XMLテクノロジを使いやすくする

XMLテクノロジを使いやすくする XML 2005 9 XML... 3... 3 XML... 5 DOM XML... 5 DOM 3.0 Load and Save... 5 DOM 3.0 Validation... 8 SAX XML... 11 SAX... 11 XSL... 12... 13... 13... 14... 14 XML... 15 XML... 15 JAXB CLASS GENERATOR... 16

More information

組織変更ライブラリ

組織変更ライブラリ 2003 6 1...1 2...2 3...4 3.1...4 3.2...5 3.3...6 3.4...6 4...7 4.1...7 4.2...9 4.3...9 4.4...10 4.5...10 5 Web...11 5.1 WebUI...11 5.2Oracle 9iFS WebUI...12 6Oracle9i AS...13 6.1OiD...13 6.2 SSO...13 7...14

More information

PowerPoint Presentation

PowerPoint Presentation JSF (JavaServer Faces) 2.0 の詳細について 日本オラクル Fusion Middleware 製品事業統括本部寺田佳央 (http://yoshio3.com) 1 2011 Oracle Corporation All rights reserved. 以下の事項は 弊社の一般的な製品の方向性に関する概要を説明するものです また 情報提供を唯一の目的とするものであり いかなる契約にも組み込むことはできません

More information

PowerPoint Presentation

PowerPoint Presentation 上級プログラミング 2( 第 5 回 ) 工学部情報工学科 木村昌臣 今日のテーマ データベース入門 データベースシステムの用意の仕方 データベースを作ってみる データベースを使ってみる データベースプログラミング JDBCを使った検索プログラム JDBCを使った更新プログラム データベース入門 今回の説明は Windows 環境を前提としているため Linux など他のプラットフォーム上で作業を行う場合は

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション 1 2 3 /usr/local javalib xerces-2_6_2 xalan-2_6_0 4 XERCES_HOME=/usr/local/javalib/xerces-2_6_2 CLASSPATH=$XERCES_HOME/xmlParserAPIs.jar:$CLASSPATH CLASSPATH=$XERCES_HOME/xercesImpl.jar:$CLASSPATH CLASSPATH=$XERCES_HOME/xercesSamples.jar:$CLASSPATH

More information

XISによる効率良いシステム開発のポイント

XISによる効率良いシステム開発のポイント XML excelon XIS excelon XIS XML April 17, 2002 excelon Extensible Information Server Page 2 Overview XML DOM (XML ) ( ) excelon XIS (DOM ) CRUD ( XML ) amazon.com 2,000 / 100 / GUI / ( 10 ) Windows (NT/2000/XP),

More information

「Android Studioではじめる 簡単Androidアプリ開発」正誤表

「Android Studioではじめる 簡単Androidアプリ開発」正誤表 Android Studio Android 2016/04/19 Android Studio Android *1 Android Studio Android Studio Android Studio Android Studio Android PDF : Android Studio Android Android Studio Android *2 c R TM *1 Android

More information

1 JBoss Seam と Embedded EJB3 で見る 次世代の Java EE アプリケーション開発 株式会社カサレアルプロフェッショナルサービスセンター阿島哲夫岡本充洋

1 JBoss Seam と Embedded EJB3 で見る 次世代の Java EE アプリケーション開発 株式会社カサレアルプロフェッショナルサービスセンター阿島哲夫岡本充洋 1 JBoss Seam と Embedded EJB3 で見る 次世代の Java EE アプリケーション開発 株式会社カサレアルプロフェッショナルサービスセンター阿島哲夫岡本充洋 2 Agenda JBoss Seam とは JBoss Seam のコンテキスト管理 JBoss Seam と JSF JBoss Seam のその他の機能 JBoss Embeded EJB3 まとめ JBoss

More information

C/C++からJVMを起動します

C/C++からJVMを起動します ダブルクリックで起動する JavaFXアプリケーションJAR 第 8 回 JavaFX 勉強会 2012-11-30 高橋徹 (@boochnich & Java 読書会 ) 発表者について @boochnich http://d.hatena.ne.jp/torutk/ Java GUI 歴 jdk1.0 時代は AWT jdk1.1 時代は AWT Netscape IFC Swing jdk1.2

More information

untitled

untitled Ajax Web Ajax http://www.openspc2.org/javascript/ajax/ajax_stu dy/index.html Life is beautiful Ajax http://satoshi.blogs.com/life/2005/06/ajax.html Ajax Ajax Asynchronous JavaScript + XML JavaScript XML

More information

SGML HTML XML Markup Language Web HTML HTML SGML Standard Generalized Markup Language Markup Language DTD Document Type Definition XML SGML Markup Language HTML XML HTML XML JavaScript JAVA CGI HTML Web

More information

22 (266) / Web PF-Web Web Web Web / Web Web PF-Web Web Web Web CGI Web Web 1 Web PF-Web Web Perl C CGI A Pipe/Filter Architecture Based Software Gener

22 (266) / Web PF-Web Web Web Web / Web Web PF-Web Web Web Web CGI Web Web 1 Web PF-Web Web Perl C CGI A Pipe/Filter Architecture Based Software Gener 22 (266) / Web PF-Web Web Web Web / Web Web PF-Web Web Web Web CGI Web Web 1 Web PF-Web Web Perl C CGI A Pipe/Filter Architecture Based Software Generator PF-Web for Constructing Web Applications. Tomohiro

More information

2009 Web B012-1

2009 Web B012-1 2009 Web 2010 2 1 5108B012-1 1 4 1.1....................................... 4 1.2................................... 4 2 Web 5 2.1 Web............................... 5 2.2 Web.................................

More information

LWW EJ on Ovid LWW Ovid Online (Ovid Web Gateway) Ovid Online LWW tutorial Ovid Online Refresh Ovid Online LWW Ovid Medline, Cinahl, EBMR, Ovid

LWW EJ on Ovid LWW Ovid Online (Ovid Web Gateway) Ovid Online LWW tutorial Ovid Online Refresh Ovid Online LWW Ovid Medline, Cinahl, EBMR, Ovid LWW EJ on Ovid Tutorial For gateway refresh version June 2005 Ovid Technologies Japan Office japan@ovid.com Visit our homepage at http://www.ovid.jp/site/index.html for more Japanese documents and latest

More information

com.ibm.etools.egl.jsfsearch.tutorial.doc.ps

com.ibm.etools.egl.jsfsearch.tutorial.doc.ps EGL JSF ii EGL JSF EGL JSF.. 1................. 1 1:.... 3 Web.......... 3........... 3........ 4......... 7 2:...... 7..... 7 SQL.... 8 JSF.... 10 Web.... 12......... 13 3: OR....... 14 OR... 14.15 OR.....

More information