Servlet 134 Filter Listener Directive 16 Action 26 Scripting 3 Implicit Object 95 Core Tag Library SQL SQL Tag Lib

Size: px
Start display at page:

Download "Servlet 134 Filter Listener Directive 16 Action 26 Scripting 3 Implicit Object 95 Core Tag Library SQL SQL Tag Lib"

Transcription

1 JSP JSP / CD

2 Servlet 134 Filter Listener Directive 16 Action 26 Scripting 3 Implicit Object 95 Core Tag Library SQL SQL Tag Library 15 XML XML Tag Library 27 Functions Tag Library 16 Tag Library 14 Expression Language 8 Servlet 68 Filter 88 Listener 8 JavaBean 9 Java JDBC 32 JSP Web Java JSP JSP 2.0 JSP Web JSP JSP JSP Servlet Servlet JavaBean JSP SQL JDBC JDBC MySQL JSP Web JSP

3 1 JSP 1 JSP JSP Java J2SDK J2SDK J2SDK Tomcat Tomcat Tomcat Tomcat Eclipse Eclipse tomcatplugin Tomcat JSP Directive page language extends import session session buffer autoflush isthreadsafe info errorpage iserrorpage contenttype pageencoding iselignored EL include taglib prefix tagdir uri attribute name... 22

4 2.4.2 required fragment rtexprvalue type description tag display-name body-content dynamic-attributes small-icon large-icon description example language import pageencoding iselignored EL variable name-given name-from-attribute alias variable-class declare description scope Action <jsp:usebean> id bean class bean type bean beanname bean scope bean <jsp:setproperty> name bean property bean param value <jsp:getproperty> name bean property bean <jsp:include> page flush... 35

5 3.4.3 <jsp:param> <jsp:forward> page <jsp:param> <jsp:param> name value <jsp:plugin> type code applet codebase applet name archive applet align height applet width applet hspace vspace jreversion JRE nspluginurl Netscape URL iepluginurl IE URL <jsp:params> <jsp:fallback> <jsp:params> <jsp:fallback> <jsp:root> version JSP xmlns:jsp XML xmlns:prefix <jsp:declaration> <jsp:scriptlet> <jsp:expression> <jsp:text> <jsp:output> omit-xml-declaration XML doctype-root-element doctype-system doctype-public <jsp:attribute> name trim <jsp:body> <jsp:element> <jsp:invoke>... 52

6 fragment var String varreader Reader scope <jsp:dobody> var String varreader Reader scope Script Declaration Expression Scriptlet Implicit Object application getattribute getattributenames getcontext ServletContext getinitparameter getinitparameternames getmajorversion getminorversion getmimetype MIME getnameddispatcher RequestDispatcher getrealpath getrequestdispatcher RequestDispatcher getresource getresourceasstream InputStream getresourcepaths getserverinfo getservlet Servlet getservletcontextname Servlet getservletnames Servlet getservlets Servlet log removeattribute setattribute config getinitparameter getinitparameternames getservletcontext ServletContext getservletname Servlet exception... 70

7 5.3.1 fillinstacktrace getcause getlocalizedmessage getmessage getstacktrace initcause printstacktrace setstacktrace tostring out DEFAULT_BUFFER NO_BUFFER UNBOUNDED_BUFFER clear clearbuffer close flush getbuffersize getremaining isautoflush newline print println page pagecontext APPLICATION ServletContext APPLICATION_SCOPE CONFIG ServletConfig EXCEPTION Exception OUT JspWriter PAGE Servlet PAGE_SCOPE PAGECONTEXT PageContext REQUEST ServletRequest REQUEST_SCOPE RESPONSE ServletResponse SESSION HttpSession SESSION_SCOPE findattribute forward getattribute getattributenamesinscope getattributesscope geterrordata ErrorData... 84

8 getexception getexpressionevaluator expressionevaluator getout JspWriter getpage page getrequest ServletRequest getresponse ServletResponse getservletconfig ServletConfig getservletcontext ServletContext getsession Session getvariableresolver VariableResolver handlepageexception include initialize pagecontext popbody out pushbody out release removeattribute setattribute request BASIC_AUTH CLIENT_CERT_AUTH DIGEST_AUTH FORM_AUTH getattribute getattributenames getauthtype getcharacterencoding getcontentlength getcontenttype getcontextpath getcookies Cookie getdateheader getheader getheadernames getheaders getinputstream getintheader getlocaladdr getlocale getlocales getlocalname getlocalport getmethod getparameter... 99

9 getparametermap getparameternames getparametervalues getpathinfo getpathtranslated getprotocol getquerystring getreader Reader getrealpath getremoteaddr getremotehost getremoteport getremoteuser getrequestdispatcher RequestDispathcer getrequestedsessionid getrequesturi URI getrequesturl URL getscheme getservername getserverport getservletpath Servlet getsession HttpSession getuserprincipal Principal isrequestedsessionidfromcookie ID Cookie isrequestedsessionidfromurl ID URL isrequestedsessionidvalid ID issecure isuserinrole removeattribute setattribute setcharacterencoding response SC_ACCEPTED SC_BAD_GATEWAY SC_BAD_REQUEST SC_CONFLICT SC_CONTINUE SC_CREATED SC_EXPECTATION_FAILED SC_FORBIDDEN SC_FOUND SC_GATEWAY_TIMEOUT SC_GONE SC_HTTP_VERSION_NOT_SUPPORTED HTTP

10 SC_INTERNAL_SERVER_ERROR SC_LENGTH_REQUIRED SC_METHOD_NOT_ALLOWED SC_MOVED_PERMANENTLY SC_MOVED_TEMPORARILY SC_MULTIPLE_CHOICES SC_NO_CONTENT SC_NON_AUTHORITATIVE_INFORMATION SC_NOT_ACCEPTABLE SC_NOT_FOUND SC_NOT_IMPLEMENTED SC_NOT_MODIFIED SC_OK SC_PARTIAL_CONTENT SC_PAYMENT_REQUIRED SC_PRECONDITION_FAILED SC_PROXY_AUTHENTICATION_REQUIRED SC_REQUEST_ENTITY_TOO_LARGE SC_REQUEST_TIMEOUT SC_REQUEST_URI_TOO_LONG URI SC_REQUESTED_RANGE_NOT_SATISFIABLE SC_RESET_CONTENT SC_SEE_OTHER SC_SERVICE_UNAVAILABLE SC_SWITCHING_PROTOCOLS SC_TEMPORARY_REDIRECT SC_UNAUTHORIZED SC_UNSUPPORTED_MEDIA_TYPE SC_USE_PROXY addcookie Cookie adddateheader addheader addintheader containsheader encoderedirecturl URL encodeurl URL flushbuffer getbuffersize getcharacterencoding getcontenttype getlocale getoutputstream ServletOutputStream getwriter PrintWriter iscommitted

11 reset resetbuffer senderror sendredirect setbuffersize setcharacterencoding setcontentlength setcontenttype setdateheader setheader setintheader setlocale setstatus session getattribute getattributenames getcreationtime getid getlastaccessedtime getmaxinactiveinterval getservletcontext ServletContext getsessioncontext getvalue getvaluenames invalidate isnew putvalue removeattribute removevalue setattribute setmaxinactiveinterval JSP 6 Core Tag Library <c:out> value default escapexml XML <c:set> value var scope target property

12 6.3 <c:remove> var scope <c:catch> <c:if> test var scope <c:choose> <c:when> <c:otherwise> <c:foreach> var items varstatus begin end step <c:fortokens> var items token delims varstatus begin end step <c:import> url URL context var scope charencoding varreader Reader <c:url> value URL context var scope <c:redirect> url URL context <c:param> name value

13 <fmt:setlocale> value variant scope <fmt:requestencoding> <fmt:message> key bundle var scope <fmt:param> <fmt:bundle> basename prefix <fmt:setbundle> basename var scope <fmt:formatnumber> value type pattern currencycode currencysymbol groupingused maxintegerdigits minintegerdigits maxfractiondigits minfractiondigits var scope <fmt:parsenumber> value type pattern parselocale integeronly var scope <fmt:formatdate> value type datestyle

14 7.9.4 timestyle pattern timezone var scope <fmt:parsedate> value type datestyle timestyle pattern timezone parselocale var scope <fmt:settimezone> value var scope <fmt:timezone> SQL SQL Tag Library <sql:setdatasource> datasource driver url URL user password var scope <sql:query> sql SQL datasource maxrows startrow var scope <sql:update> sql SQL datasource var scope <sql:param> <sql:dateparam>

15 8.5.1 value type <sql:transaction> datasource isolation XML XML Tag Library <x:parse> doc XML xml XML systemid filter vardom DOM scopedom DOM var scope <x:out> select XPath escapexml XML <x:set> select XPath var scope <x:if> select var scope <x:when> <x:choose> <x:otherwise> <x:foreach> var select XPath varstatus begin end step <x:transform> doc XML xml XML xslt XSLT docsystemid XML xsltsystemid XSLT var

16 9.9.7 scope result <x:param> name value Functions Tag Library fn:contains inputstring substring fn:containsignorecase inputstring substring fn:startswith inputstring prefix fn:endswith inputstring suffix fn:escapexml inputstring fn:indexof string substring fn:split string delimiters fn:join array separator fn:replace inputstring beforestring afterstring fn:trim

17 string fn:substring inputstring beginindex endindex fn:substringafter inputstring substring fn:substringbefore inputstring substring fn:tolowercase inputstring fn:touppercase inputstring fn:length input Tag Library TagSupport EVAL_BODY_AGAIN EVAL_BODY_INCLUDE EVAL_PAGE SKIP_BODY SKIP_PAGE id id pagecontext pagecontext doafterbody doendtag dostarttag findancestorwithclass getid id getparent getvalue getvalues release removevalue

18 setid id setpagecontext pagecontext setparent setvalue BodyTagSupport bodycontent bodycontent EVAL_BODY_BUFFERED EVAL_BODY_TAG doinitbody getbodycontent bodycontent getpreviousout out setbodycontent BodyContent SimpleTagSupport dotag findancestorwithclass getjspbody getjspcontext getparent setjspbody setjspcontext setparent DynamicAttributes TryCatchFinally docatch Catch dofinally Finally Tag Library Descriptor <taglib> <tlib-version> <jsp-version> JSP <short-name> <uri> URI <description> <display-name> <small-icon> <large-icon> <tag> <validator> <listener> <tag-file> <function> <name> <tag-class> <tei-class> <body-content>

19 <dynamic-attributes> <example> <variable> <attribute> <validator-class> <init-param> <listener-class> <path> <function-class> <function-signature> <name-given> <name-from-attribute> <variable-class> <declare> <scope> <required> <rtexprvalue> <type> <fragment> JspFragment <param-name> <param-value> Expression Language EL EL [] EL pagecontext pagescope requestscope sessionscope applicationscope param paramvalues header headervalues cookie Cookie initparam EL EL

20 EL VolFunc.java ccc.tld web.xml EL elfunc.jsp Servlet 13 Servlet Servlet init Servlet service destroy Servlet getservletconfig ServletConfig getservletinfo Servlet GenericServlet GenericServlet init Servlet service destroy Servlet getinitparameter getinitparameternames getservletconfig ServletConfig getservletcontext Servlet getservletinfo Servlet getservletname Servlet log HttpServlet HttpServlet init Servlet service destroy Servlet doget GET dopost POST dohead HEAD doput PUT dodelete DELETE dotrace TRACE dooptions OPTIONS getinitparameter

21 getinitparameternames getlastmodified ServletRequest getattribute getattributenames getcharacterencoding getcontentlength getcontenttype getinputstream getlocaladdr getlocale getlocales getlocalname getlocalport getparameter getparametermap getparameternames getparametervalues getprotocol getreader Reader getrealpath getremoteaddr getremotehost getremoteport getrequestdispatcher RequestDispatcher getscheme getservername getserverport issecure removeattribute setattribute setcharacterencoding ServletResponse flushbuffer getbuffersize getcharacterencoding getcontenttype getlocale getoutputstream ServletOutputStream getwriter PrintWriter iscommitted reset resetbuffer setbuffersize

22 setcharacterencoding setcontentlength setcontenttype setlocale HttpServletRequest BASIC_AUTH CLIENT_CERT_AUTH DIGEST_AUTH FORM_AUTH getattribute getattributenames getauthtype getcontextpath getcookies Cookie getdateheader Date getheader getheadernames getheaders getinputstream getintheader getmethod getpathinfo getpathtranslated getquerystring getremoteuser getrequestedsessionid getrequesturi URI getrequesturl URL getservletpath Servlet getsession HttpSession getuserprincipal Principal isrequestedsessionidfromcookie ID Cookie isrequestedsessionidfromurl ID URL isrequestedsessionidvalid ID issecure isuserinrole HttpServletResponse SC_ACCEPTED SC_BAD_GATEWAY SC_BAD_REQUEST SC_CONFLICT SC_CONTINUE SC_CREATED SC_EXPECTATION_FAILED

23 SC_FORBIDDEN SC_FOUND SC_GATEWAY_TIMEOUT SC_GONE SC_HTTP_VERSION_NOT_SUPPORTED HTTP SC_INTERNAL_SERVER_ERROR SC_LENGTH_REQUIRED SC_METHOD_NOT_ALLOWED SC_MOVED_PERMANENTLY SC_MOVED_TEMPORARILY SC_MULTIPLE_CHOICES SC_NO_CONTENT SC_NON_AUTHORITATIVE_INFORMATION SC_NOT_ACCEPTABLE SC_NOT_FOUND SC_NOT_IMPLEMENTED SC_NOT_MODIFIED SC_OK SC_PARTIAL_CONTENT SC_PAYMENT_REQUIRED SC_PRECONDITION_FAILED SC_PROXY_AUTHENTICATION_REQUIRED SC_REQUEST_ENTITY_TOO_LARGE SC_REQUEST_TIMEOUT SC_REQUEST_URI_TOO_LONG URI SC_REQUESTED_RANGE_NOT_SATISFIABLE SC_RESET_CONTENT SC_SEE_OTHER SC_SERVICE_UNAVAILABLE SC_SWITCHING_PROTOCOLS SC_TEMPORARY_REDIRECT SC_UNAUTHORIZED SC_UNSUPPORTED_MEDIA_TYPE SC_USE_PROXY addcookie Cookie adddateheader Date addheader addintheader containsheader encoderedirecturl URL encodeurl URL senderror sendredirect setdateheader

24 setheader setintheader setstatus ServletContext getattribute getattributenames getcontext ServletContext getinitparameter getinitparameternames getmajorversion getminorversion getmimetype MIME getnameddispatcher RequestDispatcher getrealpath getrequestdispatcher RequestDispatcher getresource getresourceasstream InputStream getresourcepaths getserverinfo getservlet Servlet getservletcontextname Servlet getservletnames Servlet getservlets Servlet log removeattribute setattribute Filter Filter destroy dofilter init FilterConfig getfiltername getinitparameter getinitparameternames getservletcontext ServletContext FilterChain ServletRequestWrapper ServletRequestWrapper getattribute getattributenames getcharacterencoding getcontentlength

25 getcontenttype getinputstream getlocaladdr getlocale getlocales getlocalname getlocalport getparameter getparametermap getparameternames getparametervalues getprotocol getreader Reader getrealpath getremoteaddr getremotehost getremoteport getrequest ServletRequest getrequestdispatcher RequestDispatcher getscheme getservername getserverport issecure removeattribute setattribute setcharacterencoding setrequest ServletRequest ServletResponseWrapper ServletResponseWrapper flushbuffer getbuffersize getcharacterencoding getcontenttype getlocale getoutputstream ServletOutputStream getresponse ServletResponse getwriter PrintWriter iscommitted reset resetbuffer setbuffersize setcharacterencoding setcontentlength setcontenttype

26 setlocale setresponse ServletResponse HttpServletRequestWrapper HttpServletRequestWrapper getauthtype getcontextpath getcookies Cookie getdateheader getheader getheadernames getheaders getintheader getmethod getpathinfo getpathtranslated getquerystring getremoteuser getrequestedsessionid getrequesturi URI getrequesturl URL getservletpath Servlet getsession HttpSession getuserprincipal Principal isrequestedsessionidfromcookie ID Cookie isrequestedsessionidfromurl ID URL isrequestedsessionidvalid ID isuserinrole HttpServletResponseWrapper HttpServletResponseWrapper addcookie Cookie adddateheader addheader addintheader containsheader encoderedirecturl URL encodeurl URL senderror sendredirect setdateheader setheader setintheader setstatus Listener

27 15.1 ServletContextListener contextinitialized Web contextdestroyed Servlet ServletContextEvent ServletContextEvent getservletcontext Servlet ServletContextAttributeListener attributeadded attributeremoved attributereplaced ServletContextAttributeEvent ServletContextAttributeEvent getservletcontext Servlet getname getvalue HttpSessionListener sessioncreated sessiondestroyed HttpSessionActivationListener sessiondidactivate sessionwillpassivate HttpSessionEvent HttpSessionEvent getsession HttpSession HttpSessionAttributeListener attributeadded attributeremoved attributereplaced HttpSessionBindingListener valuebound valueunbound HttpSessionBindingEvent HttpSessionBindingEvent getname getsession HttpSession getvalue ServletRequestListener requestinitialized Web requestdestroyed Web ServletRequestEvent ServletRequestEvent getservletcontext Servlet getservletrequest ServletRequest ServletRequestAttributeListener

28 attributeadded attributeremoved attributereplaced ServletRequestAttributeEvent ServletRequestAttributeEvent getname getvalue JavaBean JavaBean JSP JavaBean <jsp:usebean> JavaBean <jsp:setproperty> JavaBean <jsp:getproperty> JavaBean Introspection JavaBean page request session application JSP Model 1 JSP+JavaBeans Model 2 MVC JSP 17 SQL SQL DDL CREATE DATABASE DROP DATABASE CREATE TABLE ALTER TABLE DROP TABLE CREATE INDEX DROP INDEX CREATE VIEW DROP VIEW DQL SELECT INTO WHERE GROUP BY HAVING ORDER BY

29 17.4 DML INSERT UPDATE DELETE DCL GRANT REVOKE COMMIT ROLLBACK Java JDBC JDBC Type1 JDBC-ODBC Type2 API Type3 JDBC Java Type4 Java MySQL MySQL MySQL JDBC MySQL Connection TRANSACTION_NONE TRANSACTION_READ_COMMITTED TRANSACTION_READ_UNCOMMITTED TRANSACTION_REPEATABLE_READ TRANSACTION_SERIALIZABLE clearwarnings close commit createstatement Statement getautocommit getcatalog getholdability getmetadata DatabaseMetaData gettransactionisolation gettypemap getwarnings isclosed isreadonly nativesql SQL preparecall CallableStatement preparestatement PreparedStatement releasesavepoint Savepoint rollback

30 setautocommit setcatalog setholdability setreadonly setsavepoint Savepoint settransactionisolation settypemap Statement CLOSE_ALL_RESULTS CLOSE_CURRENT_RESULT EXECUTE_FAILED KEEP_CURRENT_RESULT NO_GENERATED_KEYS RETURN_GENERATED_KEYS SUCCESS_NO_INFO addbatch cancel Statement clearbatch clearwarnings close execute SQL executebatch executequery executeupdate getconnection Connection getfetchdirection getfetchsize getgeneratedkeys getmaxfieldsize getmaxrows getmoreresults getquerytimeout getresultset ResultSet getresultsetconcurrency getresultsetholdability getresultsettype getupdatecount getwarnings setcursorname setescapeprocessing setfetchdirection setfetchsize setmaxfieldsize setmaxrows

31 setquerytimeout PreparedStatement addbatch clearparameters execute SQL executequery executeupdate getmetadata ResultSetMetaData getparametermetadata ParameterMetaData setarray Array setasciistream InputStream setbigdecimal BigDecimal setbinarystream InputStream setblob Blob setboolean boolean setbyte byte setbytes setcharacterstream Reader setclob Clob setdate Date setdouble double setfloat float setint int setlong long setnull NULL setobject setref REF setshort short setstring String settime Time settimestamp Timestamp setunicodestream InputStream seturl URL CallableStatement getarray Array getbigdecimal BigDecimal getblob Blob getboolean boolean getbyte byte getbytes getclob Clob getdate Date getdouble double getfloat float

32 getint int getlong long getobject getref REF getshort short getstring String gettime Time gettimestamp Timestamp geturl URL registeroutparameter setasciistream InputStream setbigdecimal BigDecimal setbinarystream InputStream setboolean boolean setbyte byte setbytes setcharacterstream Reader setdate Date setdouble double setfloat float setint int setlong long setnull NULL setobject setshort short setstring String settime Time settimestamp Timestamp seturl URL wasnull null ResultSet CLOSE_CURSORS_AT_COMMIT CONCUR_READ_ONLY CONCUR_UPDATABLE FETCH_FORWARD FETCH_REVERSE FETCH_UNKNOWN HOLD_CURSORS_OVER_COMMIT TYPE_FORWARD_ONLY TYPE_SCROLL_INSENSITIVE TYPE_SCROLL_SENSITIVE absolute afterlast beforefirst

33 cancelrowupdates clearwarnings close deleterow findcolumn first getarray Array getasciistream ASCII getbigdecimal BigDecimal getbinarystream getblob Blob getboolean boolean getbyte byte getbytes getcharacterstream Reader getclob Clob getconcurrency getcursorname getdate Date getdouble double getfetchdirection getfetchsize getfloat float getint int getlong long getmetadata ResultSetMetaData getobject getref REF getrow getshort short getstatement Statement getstring String gettime Time gettimestamp Timestamp gettype geturl URL getwarnings insertrow isafterlast isbeforefirst isfirst islast last movetocurrentrow

34 movetoinsertrow next previous refreshrow relative rowdeleted rowinserted rowupdated setfetchdirection setfetchsize updatearray Array updateasciistream ASCII updatebigdecimal BigDecimal updatebinarystream updateblob Blob updateboolean boolean updatebyte byte updatebytes updatecharacterstream updateclob Clob updatedate Date updatedouble double updatefloat float updateint int updatelong long updatenull null updateobject Object updateref REF updaterow updateshort short updatestring String updatetime Time updatetimestamp Timestamp wasnull null XML XML Tag Library XML XML Tag Library XML XML taglib prefix uri

35 taglib prefix="x" uri=" %> XML 10 parse out set if when choose otherwise foreach transform param 9.1 <x:parse> <x:parse> XML <x:parse [doc="xmldocument" xml="xmldocument"] [systemid="systemid"] [filter="filter"] var="varname" [scope="page request session application"] /> <x:parse [systemid="systemid"] [filter="filter"] var="varname" [scope="page request session application"]> xmldocument </x:parse> <x:parse [doc="xmldocument" xml="xmldocument"] [systemid="systemid"] [filter="filter"] vardom="domname" [scopedom="page request session application"] /> <x:parse [systemid="systemid"] [filter="filter"] vardom="domname" [scopedom="page request session application"]> xmldocument </x:parse> <x:parse> 8 doc xml systemid filter vardom ScopeDom var scope doc XML doc XML <%@ page contenttype="text/html;charset=gb2312" %> <%@ taglib prefix="c" uri=" %> <%@ taglib prefix="x" uri=" %> <c:import url="txl.xml" charencoding="gb2312" var="xmldoc" /> <x:parse doc="${xmldoc}" var="doc" /> txl.xml <?xml version="1.0" encoding="gb2312"?> <linkmans> <linkman id="1"> <name> </name> <sex> </sex> <birthday> </birthday> <mobile> </mobile> <phone> </phone> < >babel@laser.com</ > </linkman> <linkman id="2"> <name> </name> <sex> </sex> <birthday> </birthday> <mobile> </mobile> <phone> </phone> < >jacinth@sanfen.com</ > </linkman>

36 <linkman id="3"> <name> </name> <sex> </sex> <birthday> </birthday> <mobile> </mobile> <phone> </phone> </linkman> <linkman id="4"> <name> </name> <sex> </sex> <birthday> </birthday> <mobile> </mobile> <phone> </phone> </linkman> <linkman id="5"> <name> </name> <sex> </sex> <birthday> </birthday> <mobile> </mobile> <phone> </phone> </linkman> <linkman id="6"> <name> </name> <sex> </sex> <birthday> </birthday> <mobile> </mobile> <phone> </phone> </linkman> <linkman id="7"> <name> </name> <sex> </sex> <birthday> </birthday> <mobile> </mobile> <phone> </phone> </linkman> </linkmans> txl.xml doc xml XML xml XML doc page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <c:import url="txl.xml" charencoding="gb2312" var="xmldoc" /> <x:parse xml="${xmldoc}" var="doc" /> systemid systemid XML URI page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <x:parse var="doc" systemid="txl.dtd">

37 <c:import url="txl.xml" charencoding="gb2312" /> </x:parse> txl.dtd <?xml version="1.0" encoding="gb2312"?> <!ELEMENT linkmans (linkman)+> <!ELEMENT linkman (name,sex,birthday,mobile,phone, *)> <!ATTLIST linkman id ID #REQUIRED> <!ELEMENT name (#PCDATA)> <!ELEMENT sex (#PCDATA)> <!ELEMENT birthday (#PCDATA)> <!ELEMENT mobile (#PCDATA)> <!ELEMENT phone (#PCDATA)> <!ELEMENT (#PCDATA)> txl.dtd txl.xml doc filter filter org.xml.sax.xmlfilter filter

38 9.1.5 vardom DOM vardom DOM org.w3c.dom.document vardom scopedom DOM scopedom DOM page request session application scopedom page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <x:parse vardom="doc" scopedom="application"> <c:import url="txl.xml" charencoding="gb2312" /> </x:parse> <c:import var="stylesheet" url="txl.xsl" charencoding="gb2312" /> <x:transform doc="${doc}" xslt="${stylesheet}" /> XSTL txl.xsl <?xml version="1.0" encoding="gb2312"?> <xsl:stylesheet xmlns:xsl=" version="1.0"> <xsl:template match="linkmans"> <table border="1" width="100%"> <tr> <th> </th> <th> </th> <th> </th> <th> </th> </tr> <xsl:for-each select="linkman"> <tr> <td align="center"> <xsl:value-of </td> <td align="center"> <xsl:value-of select="name"/> </td> <td align="center"> <xsl:value-of select="mobile"/> </td> <td align="right"> <xsl:value-of select=" "/> </td> </tr> </xsl:for-each> </table> </xsl:template> </xsl:stylesheet> 9.1

39 9.1 <x:parse> vardom scopedom var var var var scope scope page request session application scope page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <x:parse var="doc" scope="application"> <c:import url="txl.xml" charencoding="gb2312" /> </x:parse> <table> <tr align=center> <td><b> </B></td> <td><b> </B></td> <td><b> </B></td> <td><b> </b></td> </tr> <x:foreach select="$doc/linkmans/linkman"> <tr> <td align=center><x:out select="name" /></td> <td align=right><x:out select="birthday" /></td> <td align=right><x:out select="mobile" /></td> <td align=right><x:out select=" " /></td> </tr> </x:foreach> </table> 9.2

40 9.2 <x:parse> var scope 9.2 <x:out> <x:out> <%= > XPath <x:out> <x:out select="xpathexpression" [escapexml="true false"] /> <x:out> select escapexml select XPath select XPath page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <x:parse var="txl" scope="application"> <c:import url="txl.xml" charencoding="gb2312" /> </x:parse> id=1 </br> <x:out select="$txl//linkman" /></br></br> id=3 </br> <x:out /></br> <x:out> select

41 9.2.2 escapexml XML escapexml true < > & XML escapexml page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <x:parse var="txl" scope="application"> <c:import url="txl.xml" charencoding="gb2312" /> </x:parse> <x:out select="$txl//url" escapexml="true" /> <x:out> escapexml url XML escapexml false <x:set> <x:set> XPath <x:set select="xpathexpression" var="varname" [scope="page request session application"] /> <x:set> 3 select var scope select XPath select XPath <%@ page contenttype="text/html;charset=gb2312" %> <%@ taglib prefix="c" uri=" %> <%@ taglib prefix="x" uri=" %> <x:parse var="txl" scope="application"> <c:import url="txl.xml" charencoding="gb2312" /> </x:parse> <x:set var="name" select="$txl//name" /> <x:set var="linkman" select="$txl//linkman" />

42 name linkman <linkman id="1"> <name> </name> <sex> </sex> <birthday> </birthday> <mobile> </mobile> <phone> </phone> </linkman> XML var var XML scope scope page request session application scope page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <x:parse var="txl" scope="application"> <c:import url="txl.xml" charencoding="gb2312" /> </x:parse> <x:set var="linkman" select="$txl//linkman" /> <table> <tr> <td align=right> </td> <td><x:out select="$linkman//name" /></td> </tr> <tr> <td align=right> </td> <td><x:out select="$linkman//sex" /></td> </tr> <tr> <td align=right> </td> <td><x:out select="$linkman//birthday" /></td> </tr> <tr> <td align=right> </td> <td><x:out select="$linkman//mobile" /></td> </tr> <tr> <td align=right> </td> <td><x:out select="$linkman//phone" /></td> </tr> <tr> <td align=right> </td> <td><x:out select="$linkman// " /></td> </tr> </table> 9.5

43 9.5 <x:set> var scope 9.4 <x:if> <x:if> XML XPath true <x:if> <x:if select="testxpathexpression" var="varname" [scope="page request session application"] /> <x:if select="testxpathexpression" [var="varname"] [scope="page request session application"]> JSP elements </x:if> <x:if> 3 select var scope select select select <%@ page contenttype="text/html;charset=gb2312" %> <%@ taglib prefix="c" uri=" %> <%@ taglib prefix="x" uri=" %> <x:parse var="txl" scope="application"> <c:import url="txl.xml" charencoding="gb2312" /> </x:parse> <c:set var="linkmansex" value=" " /> <c:foreach begin="1" end="7" var="linkmanid"> <x:if select="$txl/linkmans/linkman[@id=$linkmanid]/sex[. = $linkmansex]"> <x:out select="$txl/linkmans/linkman[@id=$linkmanid]/name" /> <x:out select="$txl/linkmans/linkman[@id=$linkmanid]/ " /></br> </x:if> </c:foreach> $txl/linkmans/linkman[@id=$linkmanid]/sex[. = $linkmansex] linkman id linkmanid linkman sex linkmansex <x:if> 9.6

44 9.6 <x:if> select var var Boolean var page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <x:parse var="txl" scope="application"> <c:import url="txl.xml" charencoding="gb2312" /> </x:parse> <c:set var="linkmansex" value=" " /> <c:foreach begin="1" end="7" var="linkmanid"> <x:if var="isfemale" = $linkmansex]" /> <c:if test="${isfemale}"> <x:out /> <x:out /></br> </c:if> </c:foreach> <x:if> var

45 9.4.3 scope scope page request session application scope <c:foreach begin="1" end="7" var="linkmanid"> <x:if var="isfemale" scope="session" = $linkmansex]" /> <c:if test="${isfemale}"> <x:out /> <x:out /></br> </c:if> </c:foreach> 9.5 <x:when> <x:when> <x:choose> true <x:when> <x:when select="testxpathexpression"> JSP elements </x:when> <x:when> select select select page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <x:parse var="txl" scope="application"> <c:import url="txl.xml" charencoding="gb2312" /> </x:parse> <table border=0 width="100%"> <tr bgcolor="lightgreen"> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> </tr> <x:foreach select="$txl/linkmans/linkman"> <x:choose> <x:when select="sex[. = ' ' ]"> <tr bgcolor="lightblue"> </x:when> <x:otherwise> <tr> </x:otherwise> </x:choose> <td align=center><x:out select="name" /></td> <td align=center><x:out select="sex" /></td> <td align=center><x:out select="birthday" /></td> <td align=right><x:out select="mobile" /></td> <td align=right><x:out select="phone" /></td> <td align=right><x:out select=" " /></td> </tr> </x:foreach> </table>

46 <x:when> select 9.6 <x:choose> <x:choose> <x:when> <x:otherwise> <x:choose> [<x:when select="testxpathexpression"> JSP elements </x:when>] + [<x:otherwise> JSP elements </x:otherwise>] </x:choose> <x:choose> <%@ page contenttype="text/html;charset=gb2312" %> <%@ taglib prefix="c" uri=" %> <%@ taglib prefix="fmt" uri=" %> <%@ taglib prefix="x" uri=" %> <fmt:requestencoding value="gb2312" /> <x:parse var="book" scope="application"> <c:import url="book.xml" charencoding="gb2312" /> </x:parse> <FORM method="post" action="xml_061.jsp"> </br> <select name="bookname"> <x:foreach select="$book/books/book"> <option><x:out select="name" /></option> </x:foreach> </select> <input type="submit" value=" "> </FORM> xml_061.jsp <%@ page contenttype="text/html;charset=gb2312" %> <%@ taglib prefix="c" uri=" %> <%@ taglib prefix="fmt" uri=" %> <%@ taglib prefix="x" uri=" %> <fmt:requestencoding value="gb2312" /> <x:parse var="book" scope="application"> <c:import url="book.xml" charencoding="gb2312" /> </x:parse> <x:set var="selectbook" select="$book/books/book[name = $param:bookname]" /> <hr>

47 <x:out select="$selectbook//name" /></br> <x:out /><x:out select="$selectbook//price" /></br> <x:choose> <x:when select="$selectbook//type[. = ' ']"> <font color=red> </font> </x:when> <x:when select="$selectbook//type[. = ' ']"> <font color=red> </font> </x:when> <x:otherwise> <font color=red> </font> </x:otherwise> </x:choose> book.xml <?xml version="1.0" encoding="gb2312"?> <books> <book> <name> JSP </name> <type> </type> <price symbol=" ">79.00</price> </book> <book> <name> Struts </name> <type> </type> <price symbol=" ">49.00</price> </book> <book> <name> </name> <type> </type> <price symbol=" ">16.80</price> </book> <book> <name> </name> <price symbol=" ">15.80</price> </book> <book> <name> </name> <type> </type> <price symbol=" ">25.00</price> </book> </books> <x:choose> 9.7 <x:otherwise> <x:otherwise> <x:choose> <x:when> false <x:otherwise>

48 <x:otherwise> JSP elements </x:otherwise> <x:otherwise> <x:choose> <x:when select="$selectbook//type[. = ' ']"> <font color=red> </font> </x:when> <x:when select="$selectbook//type[. = ' ']"> <font color=red> </font> </x:when> <x:otherwise> <font color=red> </font> </x:otherwise> </x:choose> <x:foreach> <x:foreach> XML <x:foreach select="xpathexpression" [var="varname"] [varstatus="varstatus"] [begin="startindex"] [end="stopindex"] [step="increment"]> JSP elements </x:foreach> <x:foreach> 6 var select varstatus begin end step var var select XPath var <%@ page contenttype="text/html;charset=gb2312" %> <%@ taglib prefix="c" uri=" %> <%@ taglib prefix="x" uri=" %> <x:parse var="book" scope="application"> <c:import url="book.xml" charencoding="gb2312" /> </x:parse> <table border=0 width="65%"> <tr bgcolor="lightgreen"> <th> </th> <th> </th> <th> </th> </tr> <x:foreach var="item" select="$book/books/book"> <tr> <td align=center><x:out select="$item//name" /></td> <td align=center><x:out select="$item//type" /></td> <td align=center><x:out select="$item//price/@symbol" /><x:out select="$item//price" /></td> </tr> </x:foreach> </table> 9.10

49 9.10 <x:foreach> var select XPath select XPath page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <x:parse var="book" scope="application"> <c:import url="book.xml" charencoding="gb2312" /> </x:parse> <table border=0 width="65%"> <tr bgcolor="lightgreen"> <th> </th> <th> </th> <th> </th> </tr> <x:foreach select="$book/books/book"> <tr> <td align=center><x:out select="name" /></td> <td align=center><x:out select="type" /></td> <td align=center><x:out /><x:out select="price" /></td> </tr> </x:foreach> </table> varstatus varstatus javax.servlet. jsp.jstl.core.looptagstatus varstatus page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <x:parse var="book" scope="application"> <c:import url="book.xml" charencoding="gb2312" /> </x:parse> <table border=0 width="75%"> <tr bgcolor="lightgreen"> <th> </th> <th> </th> <th> </th> <th> </th> </tr> <x:foreach varstatus="status" select="$book/books/book"> <tr> <td align=center><c:out value="${status.index+1}" /></td> <td align=center><x:out select="name" /></td> <td align=center><x:out select="type" /></td>

50 <td align=center><x:out /><x:out select="price" /></td> </tr> </x:foreach> </table> <x:foreach> varstatus

51 9.8.4 begin begin 0 begin <%@ page contenttype="text/html;charset=gb2312" %> <%@ taglib prefix="c" uri=" %> <%@ taglib prefix="x" uri=" %> <x:parse var="book" scope="application"> <c:import url="book.xml" charencoding="gb2312" /> </x:parse> <table border=0 width="75%"> <tr bgcolor="lightgreen"> <th> </th> <th> </th> <th> </th> <th> </th> </tr> <x:foreach varstatus="status" select="$book/books/book" begin="2"> <tr> <td align=center><c:out value="${status.index+1}" /></td> <td align=center><x:out select="name" /></td> <td align=center><x:out select="type" /></td> <td align=center><x:out select="price/@symbol" /><x:out select="price" /></td> </tr> </x:foreach> </table> <x:foreach> begin end end <%@ page contenttype="text/html;charset=gb2312" %> <%@ taglib prefix="c" uri=" %> <%@ taglib prefix="x" uri=" %> <x:parse var="book" scope="application"> <c:import url="book.xml" charencoding="gb2312" /> </x:parse> <table border=0 width="75%"> <tr bgcolor="lightgreen"> <th> </th> <th> </th> <th> </th> <th> </th> </tr> <x:foreach varstatus="status" select="$book/books/book" end="3"> <tr> <td align=center><c:out value="${status.index+1}" /></td>

52 <td align=center><x:out select="name" /></td> <td align=center><x:out select="type" /></td> <td align=center><x:out /><x:out select="price" /></td> </tr> </x:foreach> </table> <x:foreach> end step step page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <x:parse var="book" scope="application"> <c:import url="book.xml" charencoding="gb2312" /> </x:parse> <table border=0 width="75%"> <tr bgcolor="lightgreen"> <th> </th> <th> </th> <th> </th> <th> </th> </tr> <x:foreach varstatus="status" select="$book/books/book" step="2"> <tr> <td align=center><c:out value="${status.index+1}" /></td> <td align=center><x:out select="name" /></td> <td align=center><x:out select="type" /></td> <td align=center><x:out /><x:out select="price" /></td> </tr> </x:foreach> </table> <x:foreach> step

53 9.9 <x:transform> <x:transform> XSLT XML <x:transform doc="xmldocument" xslt="xsltstylesheet" [docsystemid="xmlsystemid"] [xsltsystemid="xsltsystemid"] [var="varname" [scope="page request session application"] result="resultobject"] /> <x:transform doc="xmldocument" xslt="xsltstylesheet" [docsystemid="xmlsystemid"] [xsltsystemid="xsltsystemid"] [var="varname" [scope="page request session application"] result="resultobject"]> [<x:param name="parametername" value="parametervalue" />] + </x:transform> <x:transform xslt="xsltstylesheet" [docsystemid="xmlsystemid"] [xsltsystemid="xsltsystemid"] [var="varname" [scope="page request session application"] result="resultobject"]> XMLDocument [<x:param name="parametername" value="parametervalue" />] + </x:transform> <x:transform> 8 doc xml xslt docsystemid xsltsystemid var scope result doc XML doc XML XML <x:set> XML doc <%@ page contenttype="text/html;charset=gb2312" %> <%@ taglib prefix="c" uri=" %> <%@ taglib prefix="x" uri=" %> <c:import var="doc" url="txl.xml" charencoding="gb2312" /> <c:import var="stylesheet" url="txl.xsl" charencoding="gb2312" /> <x:transform doc="${doc}" xslt="${stylesheet}" /> <x:transform> doc

54 9.9.2 xml XML xml XML doc page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <c:import var="doc" url="txl.xml" charencoding="gb2312" /> <c:import var="stylesheet" url="txl.xsl" charencoding="gb2312" /> <x:transform xml="${doc}" xslt="${stylesheet}" /> xslt XSLT xslt XSLT page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <c:import var="doc" url="book.xml" charencoding="gb2312" /> <c:import var="stylesheet" url="book.xsl" charencoding="gb2312" /> <x:transform doc="${doc}" xslt="${stylesheet}" /> XSLT book.xsl <?xml version="1.0" encoding="gb2312"?> <xsl:stylesheet xmlns:xsl=" version="1.0"> <xsl:template match="books"> <table border="0" width="70%"> <tr bgcolor="lightblue" > <th> </th> <th> </th> <th> </th> </tr> <xsl:for-each select="book"> <tr bgcolor="#dddddd"> <td align="center"> <xsl:value-of select="name"/> </td> <td align="center"> <xsl:value-of select="type"/> </td> <td align="right"> <xsl:value-of <xsl:value-of select="price"/> </td> </tr> </xsl:for-each> </table> </xsl:template> </xsl:stylesheet> 9.16

55 9.16 <x:transform> xslt docsystemid XML docsystemid XML URI page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <c:import var="stylesheet" url="book.xsl" charencoding="gb2312" /> <x:transform xslt="${stylesheet}" docsystemid="book.dtd"> <c:import url="book.xml" charencoding="gb2312" /> </x:transform> xsltsystemid XSLT xsltsystemid XSLT URI page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <c:import var="stylesheet" url="book.xsl" charencoding="gb2312" /> <x:transform xslt="${stylesheet}" xsltsystemid="xslt.dtd"> <c:import url="book.xml" charencoding="gb2312" /> </x:transform> var var org.w3c.dom.document var scope scope page request session application scope

56 page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <c:set var="xsl1"> <?xml version="1.0" encoding="gb2312"?> <xsl:stylesheet xmlns:xsl=" version="1.0"> <xsl:template match="books"> <mybooks> <xsl:for-each select="book"> <mybook> <bookname><xsl:value-of select="name" /></bookname> <booktype><xsl:value-of select="type" /> </booktype> <bookprice><xsl:value-of /> <xsl:value-of select="price" /></bookprice> </mybook> </xsl:for-each> </mybooks> </xsl:template> </xsl:stylesheet> </c:set> <c:set var="xsl2"> <?xml version="1.0" encoding="gb2312"?> <xsl:stylesheet xmlns:xsl=" version="1.0"> <xsl:template match="mybooks"> <center> <table border="0" width="70%"> <tr bgcolor="lightblue" > <th> </th> <th> </th> <th> </th> </tr> <xsl:for-each select="mybook"> <tr bgcolor="#dddddd"> <td align="center"> <xsl:value-of select="bookname"/> </td> <td align="center"> <xsl:value-of select="booktype"/> </td> <td align="right"> <xsl:value-of select="bookprice"/> </td> </tr> </xsl:for-each> </table> </center> </xsl:template> </xsl:stylesheet> </c:set> <x:transform xslt="${xsl1}" var="temp" scope="application"> <c:import url="book.xml" charencoding="gb2312" /> </x:transform> <x:transform xslt="${xsl2}" doc="${temp}" /> <x:transform> var scope

57 9.9.8 result result javax.xml. transform.result result page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <c:import var="doc" url="book.xml" charencoding="gb2312" /> <c:import var="xsl" url="book.xsl" charencoding="gb2312" /> <x:transform doc="${doc}" xslt="${xsl}" result="${outputresult}" /> 9.10 <x:param> <x:param> Transform <x:transform> <x:param> <x:param name="parametername" value="parametervalue" /> <x:param name="parametername"> parametervalue </x:param> <x:param> name value name name page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <c:import var="doc" url="book.xml" charencoding="gb2312" /> <c:import var="xsl" url="books.xsl" charencoding="gb2312" /> <x:transform doc="${doc}" xslt="${xsl}"> <x:param name="color"> green </x:param> </x:transform> XSLT books.xsl <?xml version="1.0" encoding="gb2312"?> <xsl:stylesheet xmlns:xsl=" version="1.0"> <xsl:param name="color"/> <xsl:template match="books"> <center> <table width="75%"> <xsl:choose> <xsl:when test="$color='blue'"> <tr bgcolor="lightblue"> <th> </th> <th> </th> <th> </th> </tr> </xsl:when> <xsl:when test="$color='green'"> <tr bgcolor="lightgreen"> <th> </th>

58 <th> </th> <th> </th> </tr> </xsl:when> <xsl:otherwise> <tr bgcolor="#dddddd"> <th> </th> <th> </th> <th> </th> </tr> </xsl:otherwise> </xsl:choose> <xsl:for-each select="book"> <tr bgcolor="#dddddd"> <td align="center"> <xsl:value-of select="name"/> </td> <td align="center"> <xsl:value-of select="type"/> </td> <td align="right"> <xsl:value-of <xsl:value-of select="price"/> </td> </tr> </xsl:for-each> </table> </center> </xsl:template> </xsl:stylesheet> <x:param> name value value page contenttype="text/html;charset=gb2312" %> taglib prefix="c" uri=" %> taglib prefix="x" uri=" %> <c:import var="doc" url="book.xml" charencoding="gb2312" /> <c:import var="xsl" url="books.xsl" charencoding="gb2312" /> <x:transform doc="${doc}" xslt="${xsl}"> <x:param name="color" value="blue" /> </x:transform> 9.19

59 9.19 <x:param> value 13 Servlet Servlet Web Java Servlet Servlet API javax.servlet javax.servlet.http Servlet javax.servlet.servlet HTTP Servlet javax.servlet.http.httpservlet 13.1 Servlet Servlet Servlet Servlet Servlet Servlet Servlet Servlet init() service() Servlet destroy() Servlet getservletconfig() getservletinfo() init Servlet init() Servlet public void init ( ServletConfig config ) throws ServletException // ServletConfig Servlet Servlet service service()

60 public void service ( ServletRequest request, // ServletRequest ServletResponse response // ServletResponse Servlet ) throws ServletException, IOException init() package mil.zcz.jsp.servlet; import java.io.*; import javax.servlet.*; public class GreetServlet implements Servlet { private String greeting; public void destroy() { greeting = null; } public ServletConfig getservletconfig() { return null; } public String getservletinfo() { return "Copyright 2006 Wildcat Studio. All rights reserved."; } public void init(servletconfig config) throws ServletException { greeting = " Servlet "; } } public void service(servletrequest request, ServletResponse response) throws ServletException, IOException { response.setcontenttype("text/html;charset=gb2312"); PrintWriter out = response.getwriter(); out.println("<html>"); out.println("<head>"); out.println("<title>greetservlet</title>"); out.println("</head>"); out.println("<h2>"); out.println(greeting); out.println("</h2>"); out.close(); } web.xml <?xml version="1.0" encoding="iso "?> <web-app xmlns=" xmlns:xsi=" xsi:schemalocation=" version="2.4"> <servlet> <servlet-name>greetservlet</servlet-name> <servlet-class>mil.zcz.jsp.servlet.greetservlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>greetservlet</servlet-name> <url-pattern>/greet</url-pattern> </servlet-mapping> </web-app> 13.1

61 13.1 Servlet service destroy Servlet destroy() Servlet public void destroy ( ) Servlet service() getservletconfig ServletConfig getservletconfig() Servlet public ServletConfig getservletconfig ( ) ServletConfig null public ServletConfig getservletconfig() { return null; } getservletinfo Servlet getservletinfo() public String getservletinfo ( ) Servlet HTML XML public String getservletinfo() { return "Copyright 2006 Wildcat Studio. All rights reserved."; }

62 13.2 GenericServlet GenericServlet Servlet ServletConfig GenericServlet Servlet Servlet service() GenericServlet javax.servlet.genericservlet public GenericServlet ( ) Servlet init() init Servlet init() Servlet public void init ( ServletConfig config ) throws ServletException public void init ( ) throws ServletException // ServletConfig Servlet init(servletconfig) super.init(config) init() service service() public abstract void service ( ServletRequest req, // ServletRequest ServletResponse res // ServletResponse Servlet ) throws ServletException, IOException service() GenericServlet package mil.zcz.jsp.servlet; import java.io.*; import java.sql.*; import javax.servlet.*; public class DBServlet extends GenericServlet { private String url; public void init() throws ServletException { url = "jdbc:mysql//localhost:3306/txl?user=root&password="; } public void destroy() { url = null; }

63 public void service(servletrequest request, ServletResponse response) throws ServletException, IOException { String user = super.getinitparameter("user"); String pass = super.getinitparameter("password"); if ((user!= null) && (pass!= null)) { url = "jdbc:mysql://localhost:3306/txl?user=" + user + "&password=" + pass; } response.setcontenttype("text/html;charset=gb2312"); PrintWriter out = response.getwriter(); } try { try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException ce) { System.out.println(ce); } Connection conn = DriverManager.getConnection(url); Statement stmt = conn.createstatement(); ResultSet rs = stmt.executequery("select * FROM linkman"); out.println("<table border=1><tr>"); out.println("<th> </th>"); out.println("<th> </th>"); out.println("<th> </th>"); out.println("<th> </th></tr>"); while (rs.next()) { out.println("<tr><td>"); out.println(rs.getstring("name")); out.println("</td><td>"); out.println(rs.getstring("birthday")); out.println("</td><td>"); out.println(rs.getstring("mobile")); out.println("</td><td>"); out.println(rs.getstring(" ")); out.println("</td></tr>"); } out.println("</table>"); } catch (SQLException e) { System.out.println(e); } web.xml <?xml version="1.0" encoding="iso "?> <web-app xmlns=" xmlns:xsi=" xsi:schemalocation=" version="2.4"> <servlet> <servlet-name>dbservlet</servlet-name> <servlet-class>mil.zcz.jsp.servlet.dbservlet</servlet-class> <init-param> <param-name>user</param-name> <param-value>root</param-value> </init-param> <init-param> <param-name>password</param-name> <param-value>kp12345</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>dbservlet</servlet-name> <url-pattern>/db</url-pattern> </servlet-mapping> </web-app> 13.2

64 13.2 GenericServlet service destroy Servlet destroy() Servlet public void destroy ( ) getinitparameter getinitparameter() public String getinitparameter ( String name // ) null getinitparameternames getinitparameternames() public Enumeration getinitparameternames ( ) Servlet Servlet Enumeration e = this.getinitparameternames(); while (e.hasmoreelements()) { String paramname = e.nextelement().tostring(); out.println(paramname + " = " + this.getinitparameter(paramname)); } getservletconfig ServletConfig getservletconfig() Servlet

65 public ServletConfig getservletconfig ( ) ServletConfig getinitparameter() public void service(servletrequest request, ServletResponse response) throws ServletException, IOException { PrintWriter out = response.getwriter(); } String user = super.getservletconfig().getinitparameter("user"); out.println(user); root getservletcontext Servlet getservletcontext() public ServletContext getservletcontext ( ) ServletContext public void service(servletrequest request, ServletResponse response) throws ServletException, IOException { PrintWriter out = response.getwriter(); } ServletContext ctx = super.getservletcontext(); ctx.setattribute("user", "Forrid"); out.println(ctx.getattribute("user")); Forrid

66 getservletinfo Servlet getservletinfo() public String getservletinfo() getservletname Servlet getservletname() public String getservletname ( ) DBServlet DBServlet log log() Servlet public void log ( String msg ) public void log ( String message, Throwable t ) // // // java.lang.throwable public void service(servletrequest request, ServletResponse response) throws ServletException, IOException { super.log(" "); } 13.3 HttpServlet HttpServlet GenericServlet HttpServlet Web HTTP Servlet HttpServlet doget() HTTP GET dopost() HTTP POST doput() HTTP PUT dodelete() HTTP DELETE init() destroy() Servlet getservletinfo()

67 HttpServlet getservletconfig() getservletcontext() getservletinfo() getservletname() log() GenericServlet HttpServlet javax.servlet.http.httpservlet public HttpServlet ( ) init Servlet init() Servlet service service() protected void service ( HttpServletRequest request, // HttpServletRequest HttpServletResponse response // HttpServletResponse Servlet ) throws ServletException, IOException public void service ( ServletRequest request, // HttpServletRequest ServletResponse response // HttpServletResponse Servlet ) throws ServletException, IOException destroy Servlet destroy() Servlet doget GET doget() HTTP GET protected void doget ( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException // HttpServletRequest // HttpServletResponse Servlet doget() HTTP GET HTTP HEAD HEAD GET PrintWriter HTTP BAD REQUEST package mil.zcz.jsp.servlet;

68 import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class WelcomeServlet extends HttpServlet { public void doget(httpservletrequest request, HttpServletResponse response) throws ServletException, IOException { response.setcontenttype("text/html;charset=gb2312"); PrintWriter out = response.getwriter(); String user = request.getparameter("user"); String msg = "Hi " + user + ", welcome to the servlet's world!"; out.println(msg); out.close(); } } web.xml <?xml version="1.0" encoding="iso "?> <web-app xmlns=" xmlns:xsi=" xsi:schemalocation=" version="2.4"> <servlet> <servlet-name>welcomeservlet</servlet-name> <servlet-class>mil.zcz.jsp.servlet.welcomeservlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>welcomeservlet</servlet-name> <url-pattern>/welcome</url-pattern> </servlet-mapping> </web-app> JSP welcome.jsp <html> <head> <title>welcome</title> </head> <B>Please input your name:</b></br> <form method="get" action="/jspbook/welcome"> <input type="text" name="user" /> <input type="submit" value="submit" /> </form> HttpServlet doget dopost POST dopost() HTTP POST protected void dopost ( HttpServletRequest request, // HttpServletRequest

69 ) HttpServletResponse response // HttpServletResponse Servlet throws ServletException, IOException PrintWriter HTTP BAD REQUEST package mil.zcz.jsp.servlet; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class WelcomeServlet extends HttpServlet { public void doget(httpservletrequest request, HttpServletResponse response) throws ServletException, IOException { response.setcontenttype("text/html;charset=gb2312"); PrintWriter out = response.getwriter(); String user = request.getparameter("user"); String msg = "Hi " + user + ", welcome to the servlet's world!"; out.println(msg); out.close(); } public void dopost(httpservletrequest request, HttpServletResponse response) throws ServletException, IOException { this.doget(request, response); // doget() } } JSP welcome.jsp <B>Please input your name:</b></br> <form method="post" action="/jspbook/welcome"> <input type="text" name="user" /> <input type="submit" value="submit" /> </form> dohead HEAD dohead() service() HTTP HEAD protected void dohead ( HttpServletRequest request, // Servlet HttpServletResponse response // Servlet HTTP ) throws ServletException, IOException HTTP BAD REQUEST doput PUT doput() service() HTTP PUT protected void doput ( HttpServletRequest request, HttpServletResponse response ) // HttpServletRequest // HttpServletResponse Servlet

70 throws ServletException, IOException FTP HTTP BAD REQUEST dodelete DELETE dodelete() service() HTTP DELETE protected void dodelete ( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException // HttpServletRequest // HttpServletResponse Servlet HTTP BAD REQUEST dotrace TRACE dotrace() service() HTTP TRACE protected void dotrace ( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException // HttpServletRequest // HttpServletResponse Servlet TRACE dooptions OPTIONS dooptions() service() HTTP OPTIONS protected void dooptions ( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException // HttpServletRequest // HttpServletResponse Servlet HTTP Servlet doget() dooptions() Allow: GET, HEAD, TRACE, OPTIONS getinitparameter getinitparameter()

71 getinitparameternames getinitparameternames() getlastmodified getlastmodified() HttpServletRequest protected long getlastmodified ( HttpServletRequest request ) // Servlet HttpServletRequest GMT GET 13.4 ServletRequest ServletRequest Servlet Servlet ServletRequest Servlet service() ServletRequest ServletRequest HttpServletRequest HTTP getattribute getattribute() public Object getattribute ( String name // ) null getattributenames getattributenames() public Enumeration getattributenames ( ) package mil.zcz.jsp.servlet;

72 import java.io.*; import java.util.*; import javax.servlet.*; public class RequestServlet extends GenericServlet public void service(servletrequest request, ServletResponse response) throws ServletException, IOException { request.setattribute("author", "Forrid"); // request.setattribute("version", "1.0"); request.setattribute("copyright", "Copyright 2006 Wildcat Studio"); } } response.setcontenttype("text/html;charset=gb2312"); PrintWriter out = response.getwriter(); Enumeration e = request.getattributenames(); // String name; out.println("<table border=1>"); out.println("<tr><th> </th><th> </th></tr>"); while (e.hasmoreelements()) { name = e.nextelement().tostring(); out.println("<tr><td align=center><i>"); out.println(name); out.println("</i></td><td>"); out.println(request.getattribute(name)); // out.println("</td><tr>"); } out.println("</table>"); out.close(); web.xml <?xml version="1.0" encoding="iso "?> <web-app xmlns=" xmlns:xsi=" xsi:schemalocation=" version="2.4"> <servlet> <servlet-name>requestservlet</servlet-name> <servlet-class>mil.zcz.jsp.servlet.requestservlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>requestservlet</servlet-name> <url-pattern>/request</url-pattern> </servlet-mapping> </web-app> RequestServlet getattribute getattributenames getcharacterencoding getcharacterencoding() public String getcharacterencoding ( ) null

73 public class RequestServlet extends GenericServlet { public void service(servletrequest request, ServletResponse response) throws ServletException, IOException { PrintWriter out = response.getwriter(); request.setcharacterencoding("gb2312"); // out.println(request.getparameter("user")); out.println("(" + request.getcharacterencoding() + ")"); // out.close(); } } JSP welcome.jsp welcome.jsp RequestServlet GB getcontentlength getcontentlength() public int getcontentlength ( ) getcontenttype getcontenttype() MIME public String getcontenttype ( ) null getinputstream getinputstream() public ServletInputStream getinputstream ( ) throws IOException ServletInputStream public void service(servletrequest request, ServletResponse response) throws ServletException, IOException { ServletInputStream sis = request.getinputstream(); byte b[] = new byte[1024]; int len = sis.readline(b, 0, 1024); response.setcontenttype("text/html;charset=gb2312"); PrintWriter out = response.getwriter(); out.println(" "); out.println(request.getcontenttype()); out.println("</br>"); out.println(" "); out.println(request.getcontentlength()); out.println("<hr>"); // // out.println(" "); for (int i=0; i<len; i++) { out.print(b[i] + " "); }

74 } out.close(); JSP welcome.jsp <B>Please input your name:</b></br> <form method="post" action="/jspbook/request"> <input type="text" name="user" /> <input type="submit" value="submit" /> </form> ServletRequest getinputstream getlocaladdr getlocaladdr() IP public String getlocaladdr ( ) getlocale getlocale() public Locale getlocale ( ) out.println(request.getlocale()); zh_cn getlocales getlocales() public Enumeration getlocales ( ) Enumeration e = request.getlocales(); while (e.hasmoreelements()) { out.println(e.nextelement());

75 } zh_cn getlocalname getlocalname() public String getlocalname ( ) getlocalport getlocalport() public int getlocalport ( ) getparameter getparameter() public String getparameter ( String name // ) null getparametermap getparametermap() public Map getparametermap ( ) java.util.map String getparameternames getparameternames() public Enumeration getparameternames ( ) String

76 getparametervalues getparametervalues() public String[] getparametervalues ( String name // ) String null 1 public void service(servletrequest request, ServletResponse response) throws ServletException, IOException { request.setcharacterencoding("gb2312"); response.setcontenttype("text/html;charset=gb2312"); PrintWriter out = response.getwriter(); Enumeration e = request.getparameternames(); // String name; out.println("<font size=2 color=red><i>getparameter() getparameternames() </I></font>"); out.println("<table border=1>"); out.println("<tr><th> </th><th> </th></tr>"); while (e.hasmoreelements()) { name = e.nextelement().tostring(); out.println("<tr><td align=center><i>"); out.println(name); out.println("</i></td><td>"); out.println(request.getparameter(name)); // out.println("</td><tr>"); } out.println("</table>"); } String fond[] = request.getparametervalues("fond"); // out.println("<font size=2 color=red><i>getparametervalues() </I></font></br>"); out.println(" "); for (int i=0; i<fond.length; i++) { out.println(" " + fond[i]); } out.println("</br><font size=2 color=red><i>getparametermap() </I></font>"); Map m = request.getparametermap(); // Set s = m.keyset(); Iterator i = s.iterator(); Object key, value; out.println("<table border=1>"); out.println("<tr><th> </th><th> </th></tr>"); while (i.hasnext()) { key = i.next(); value = m.get(key); out.println("<tr><td align=center><i>"); out.println(key.tostring()); out.println("</i></td><td>"); fond = (String[])value; int len = fond.length; out.print(fond[0]); if (len > 1) { for (int j=1; j<len; j++) { out.println(" " + fond[j]); } } out.println("</td><tr>"); } out.println("</table>"); out.close(); JSP reg.jsp <%@ page contenttype="text/html;charset=gb2312" %> <html> <head> <title>registration</title> </head>

77 <FORM METHOD=POST ACTION="/JSPBook/Request"> <INPUT TYPE="text" NAME="id"></br> <INPUT TYPE="password" NAME="pass"></br> <INPUT TYPE="checkbox" NAME="fond" VALUE=" "> <INPUT TYPE="checkbox" NAME="fond" VALUE=" "> <INPUT TYPE="checkbox" NAME="fond" VALUE=" "> </br> <TEXTAREA NAME="remark" ROWS="5" COLS="25"></TEXTAREA></br> <INPUT TYPE="submit" VALUE=" "> <INPUT TYPE="reset" VALUE=" "> </FORM> ServletRequest getparametervalues

78 getprotocol getprotocol() public String getprotocol ( ) /. HTTP/ getreader Reader getreader() BufferedReader public BufferedReader getreader ( ) throws IOException UnsupportedEncodingException public void service(servletrequest request, ServletResponse response) throws ServletException, IOException { response.setcontenttype("text/html;charset=gb2312"); PrintWriter out = response.getwriter(); BufferedReader reader = request.getreader(); char buf[] = new char[1024]; int len = reader.read(buf, 0, 1024); for (int i=0; i<len; i++) { out.print(buf[i]); } out.close(); } JSP reg.jsp reg.jsp ServletRequest getreader getrealpath Java Servlet 2.1 API ServletContext. getrealpath(string) getremoteaddr getremoteaddr() IP

79 public String getremoteaddr ( ) getremotehost getremotehost() public String getremotehost ( ) getremoteport getremoteport() public int getremoteport ( ) getrequestdispatcher RequestDispatcher getrequestdispatcher() public RequestDispatcher getrequestdispatcher ( String path // ) RequestDispatcher RequestDispatcher Servlet RequestDispatcher null public void service(servletrequest request, ServletResponse response) throws ServletException, IOException { RequestDispatcher rd = request.getrequestdispatcher("/greet"); rd.forward(request, response); } ServletRequest getrequestdispatcher getscheme getscheme()

80 public String getscheme ( ) HTTP FTP HTTPS HTTP getservername getservername() public String getservername ( ) getserverport getserverport() public int getserverport ( ) public void service(servletrequest request, ServletResponse response) throws ServletException, IOException { response.setcontenttype("text/html;charset=gb2312"); PrintWriter out = response.getwriter(); out.println("<table border=1>"); out.println("<tr><th> </th><th> </th></tr>"); out.println("<tr><td>getlocaladdr</td><td>"); out.println(request.getlocaladdr()); out.println("</td></tr>"); out.println("<tr><td>getlocalname</td><td>"); out.println(request.getlocalname()); out.println("</td></tr>"); out.println("<tr><td>getlocalport</td><td>"); out.println(request.getlocalport()); out.println("</td></tr>"); out.println("<tr><td>getremoteaddr</td><td>"); out.println(request.getremoteaddr()); out.println("</td></tr>"); out.println("<tr><td>getremotehost</td><td>"); out.println(request.getremotehost()); out.println("</td></tr>"); out.println("<tr><td>getremoteport</td><td>"); out.println(request.getremoteport()); out.println("</td></tr>"); out.println("<tr><td>getservername</td><td>"); out.println(request.getservername()); out.println("</td></tr>"); out.println("<tr><td>getserverport</td><td>"); out.println(request.getserverport()); out.println("</td></tr>"); out.println("</table>"); out.close(); } 13.9

81 13.9 ServletRequest getserverport issecure issecure() HTTPS public boolean issecure ( ) true false removeattribute removeattribute() public void removeattribute ( String name // ) request.removeattribute("author"); Author setattribute setattribute() public void setattribute ( String name, Object obj ) // // RequestDispatcher() setcharacterencoding setcharacterencoding() public void setcharacterencoding ( String env // ) throws UnsupportedEncodingException

What Servlet

What Servlet 7 JSTL 1.1 JSTL JavaServer Pages Standard Tag Library 1.1 JSTL JCP(Java Community Process) Java Web Web JSTL EL Web Java (Scripting) JSTL URL U18N XML SQL JSTL JSTL 6 7-1 JSTL 1.1 简介 7-2 核心标签库 (Core tag

More information

基于CDIO一体化理念的课程教学大纲设计

基于CDIO一体化理念的课程教学大纲设计 Java 语 言 程 序 设 计 课 程 教 学 大 纲 Java 语 言 程 序 设 计 课 程 教 学 大 纲 一 课 程 基 本 信 息 1. 课 程 代 码 :52001CC022 2. 课 程 名 称 :Java 语 言 程 序 设 计 3. 课 程 英 文 名 称 :Java Programming 4. 课 程 类 别 : 理 论 课 ( 含 实 验 上 机 或 实 践 ) 5. 授

More information

Servlet

Servlet Servlet Allen Long Email: allen@huihoo.com http://www.huihoo.com 2004-04 Huihoo - Enterprise Open Source http://www.huihoo.com 1 Huihoo - Enterprise Open Source http://www.huihoo.com 2 GET POST Huihoo

More information

D getinitparameternames() 9 下 列 选 项 中, 属 于 Servlet API 中 提 供 的 request 对 象 的 包 装 类 的 是 ( ) A HttpServletRequestWrapper B HttpServletRequest C HttpServ

D getinitparameternames() 9 下 列 选 项 中, 属 于 Servlet API 中 提 供 的 request 对 象 的 包 装 类 的 是 ( ) A HttpServletRequestWrapper B HttpServletRequest C HttpServ 第 四 章 Filter( 过 滤 器 ) 样 题 A 卷 一 选 择 题 ( 每 小 题 2 分, 共 20 分 ) 1 下 面 选 项 中, 用 于 实 现 初 始 化 过 滤 器 的 方 法 是 ( ) A init(filterconfig filterconfig) B dofilter(servletrequest req,servletresponse resp,filterchain

More information

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM CHAPTER 6 SQL SQL SQL 6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM 3. 1986 10 ANSI SQL ANSI X3. 135-1986

More information

Microsoft Word - SCWCD-CH01.doc

Microsoft Word - SCWCD-CH01.doc Java SCWCD 5(Sun Certified Web Component Developer) 全 名 為, 屬 於 專 業 級 這 項 主 要 是 確 保 開 發 工 程 師 具 備 能 使 用 JavaServer Pages Servlet 技 術 所 提 供 Web 服 務 動 態 Web 內 容 的 能 力 對 於 想 要 開 發 Web 應 用 程 的 開 發 人 員 來 說,

More information

untitled

untitled 653 JAVA 2008 11 Institution of Software Engineer... 2... 4... 4... 5... 5... 8... 8... 8... 8... 8... 9... 9... 9... 11... 13... 13... 13... 13... 15... 15... 15... 15... 16... 16... 17... 17... 17...

More information

JSP基础编程

JSP基础编程 JSP 基础编程 报告人 : 包亮 邮箱 :rslab@lzb.ac.cn HTTP 基础 HTTP is a simple, stateless protocol. A client, such as a web browser, makes a request, the web server responds, and the transaction is done. Client 发出一个请求

More information

1.JasperReport ireport JasperReport ireport JDK JDK JDK JDK ant ant...6

1.JasperReport ireport JasperReport ireport JDK JDK JDK JDK ant ant...6 www.brainysoft.net 1.JasperReport ireport...4 1.1 JasperReport...4 1.2 ireport...4 2....4 2.1 JDK...4 2.1.1 JDK...4 2.1.2 JDK...5 2.1.3 JDK...5 2.2 ant...6 2.2.1 ant...6 2.2.2 ant...6 2.3 JasperReport...7

More information

jsp

jsp JSP Allen Long Email: allen@huihoo.com http://www.huihoo.com 2004-04 Huihoo - Enterprise Open Source http://www.huihoo.com 1 JSP JSP JSP JSP MVC Huihoo - Enterprise Open Source http://www.huihoo.com 2

More information

FileMaker 16 ODBC 和 JDBC 指南

FileMaker 16 ODBC 和 JDBC 指南 FileMaker 16 ODBC JDBC 2004-2017 FileMaker, Inc. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker FileMaker Go FileMaker, Inc. FileMaker WebDirect FileMaker Cloud FileMaker,

More information

untitled

untitled JavaEE+Android - 6 1.5-2 JavaEE web MIS OA ERP BOSS Android Android Google Map office HTML CSS,java Android + SQL Sever JavaWeb JavaScript/AJAX jquery Java Oracle SSH SSH EJB+JBOSS Android + 1. 2. IDE

More information

(TestFailure) JUnit Framework AssertionFailedError JUnit Composite TestSuite Test TestSuite run() run() JUnit

(TestFailure) JUnit Framework AssertionFailedError JUnit Composite TestSuite Test TestSuite run() run() JUnit Tomcat Web JUnit Cactus JUnit Java Cactus JUnit 26.1 JUnit Java JUnit JUnit Java JSP Servlet JUnit Java Erich Gamma Kent Beck xunit JUnit boolean JUnit Java JUnit Java JUnit Java 26.1.1 JUnit JUnit How

More information

TopTest_Adminstrator.doc

TopTest_Adminstrator.doc 壹 前 言... 3 貳 系 統 簡 介... 4 一 TKB multimedia Top-Test 系 統 架 構...4 1. 使 用 者 介 面 層 (Presentation tier)...5 2. 商 業 邏 輯 層 (business logic tier)...5 3. 資 料 服 務 層 (data services tier)...5 二 TKB Multimedia Top-Test

More information

RUN_PC連載_8_.doc

RUN_PC連載_8_.doc PowerBuilder 8 (8) Web DataWindow ( ) DataWindow Web DataWindow Web DataWindow Web DataWindow PowerDynamo Web DataWindow / Web DataWindow Web DataWindow Wizard Web DataWindow Web DataWindow DataWindow

More information

untitled

untitled -JAVA 1. Java IDC 20 20% 5 2005 42.5 JAVA IDC JAVA 60% 70% JAVA 3 5 10 JAVA JAVA JAVA J2EE J2SE J2ME 70% JAVA JAVA 20 1 51 2. JAVA SUN JAVA J2EE J2EE 3. 1. CSTP CSTP 2 51 2. 3. CSTP IT CSTP IT IT CSTP

More information

1 JSP 基础知识

1 JSP 基础知识 JSP 入门教程 北京理工大学计算机学院金旭亮 1 JSP 基础知识 概述 JSP 页面本质上是一个 Servlet, 在 JSP 容器中运行, 一个 Servlet 容器通常也是 JSP 容器, 当一个 JSP 页面第一次被请求时,Servlet/JSP 容器主要做以下两件事情 : (1) 转换 JSP 页面到 JSP 页面实现类, 该实现类是一个实现 javax.servlet.jsp.jsppage

More information

内部对象 总体介绍 :JSP 中共 9 种内置对象 out 对象 request 对象 response 对象 session 对象 exception 对象注意大小写! application 对象 page 对象 pagecontext 对象 config 对象重点讲解前 6 种

内部对象 总体介绍 :JSP 中共 9 种内置对象 out 对象 request 对象 response 对象 session 对象 exception 对象注意大小写! application 对象 page 对象 pagecontext 对象 config 对象重点讲解前 6 种 单击此处编辑母版标题样式第四章 JSP 隐含对象部分 单击此处编辑母版副标题样式 songxiaohui@neusoft.edu.cn Tel:2262 1 内部对象 总体介绍 :JSP 中共 9 种内置对象 out 对象 request 对象 response 对象 session 对象 exception 对象注意大小写! application 对象 page 对象 pagecontext 对象

More information

Microsoft Word - 01.DOC

Microsoft Word - 01.DOC 第 1 章 JavaScript 简 介 JavaScript 是 NetScape 公 司 为 Navigator 浏 览 器 开 发 的, 是 写 在 HTML 文 件 中 的 一 种 脚 本 语 言, 能 实 现 网 页 内 容 的 交 互 显 示 当 用 户 在 客 户 端 显 示 该 网 页 时, 浏 览 器 就 会 执 行 JavaScript 程 序, 用 户 通 过 交 互 式 的

More information

FileMaker 15 ODBC 和 JDBC 指南

FileMaker 15 ODBC 和 JDBC 指南 FileMaker 15 ODBC JDBC 2004-2016 FileMaker, Inc. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker FileMaker Go FileMaker, Inc. / FileMaker WebDirect FileMaker, Inc. FileMaker

More information

RUN_PC連載_10_.doc

RUN_PC連載_10_.doc PowerBuilder 8 (10) Jaguar CTS ASP Jaguar CTS PowerDynamo Jaguar CTS Microsoft ASP (Active Server Pages) ASP Jaguar CTS ASP Jaguar CTS ASP Jaguar CTS ASP Jaguar CTS ASP Jaguar CTS ASP Jaguar Server ASP

More information

(CIP) Web /,. :,2005. 1 ISBN 7 81058 782 X.W............T P393.4 CIP (2004) 118797 Web ( 99 200436) ( http:/ / www.shangdapress.com 66135110) : * 787

(CIP) Web /,. :,2005. 1 ISBN 7 81058 782 X.W............T P393.4 CIP (2004) 118797 Web ( 99 200436) ( http:/ / www.shangdapress.com 66135110) : * 787 Web (CIP) Web /,. :,2005. 1 ISBN 7 81058 782 X.W............T P393.4 CIP (2004) 118797 Web ( 99 200436) ( http:/ / www.shangdapress.com 66135110) : * 787 1092 1/ 16 30.75 748 2005 1 1 2005 1 1 : 1 3 100

More information

學 科 100% ( 為 單 複 選 題, 每 題 2.5 分, 共 100 分 ) 1. 請 參 閱 附 圖 作 答 : (A) 選 項 A (B) 選 項 B (C) 選 項 C (D) 選 項 D Ans:D 2. 下 列 對 於 資 料 庫 正 規 化 (Normalization) 的 敘

學 科 100% ( 為 單 複 選 題, 每 題 2.5 分, 共 100 分 ) 1. 請 參 閱 附 圖 作 答 : (A) 選 項 A (B) 選 項 B (C) 選 項 C (D) 選 項 D Ans:D 2. 下 列 對 於 資 料 庫 正 規 化 (Normalization) 的 敘 ITE 資 訊 專 業 人 員 鑑 定 資 料 庫 系 統 開 發 與 設 計 實 務 試 卷 編 號 :IDS101 注 意 事 項 一 本 測 驗 為 單 面 印 刷 試 題, 共 計 十 三 頁 第 二 至 十 三 頁 為 四 十 道 學 科 試 題, 測 驗 時 間 90 分 鐘 : 每 題 2.5 分, 總 測 驗 時 間 為 90 分 鐘 二 執 行 CSF 測 驗 系 統 -Client

More information

优迈科技教学大纲2009版本

优迈科技教学大纲2009版本 java 软 件 工 程 师 培 训 教 学 大 纲 1 JAVA 软 件 工 程 师 培 训 教 学 大 纲 深 圳 软 件 园 人 才 实 训 基 地 2009 年 3 月 目 录 java 软 件 工 程 师 培 训 教 学 大 纲 2 教 学 阶 段...3 第 一 章 JAVA 起 步...3 第 二 章 面 向 对 象 的 编 程...4 第 三 章 数 据 结 构 IO 线 程 网 络...5

More information

XXXXXXXX http://cdls.nstl.gov.cn 2 26

XXXXXXXX http://cdls.nstl.gov.cn 2 26 [ ] [ ] 2003-7-18 1 26 XXXXXXXX http://cdls.nstl.gov.cn 2 26 (2003-7-18) 1...5 1.1...5 1.2...5 1.3...5 2...6 2.1...6 2.2...6 2.3...6 3...7 3.1...7 3.1.1...7 3.1.2...7 3.1.2.1...7 3.1.2.1.1...8 3.1.2.1.2...10

More information

Microsoft PowerPoint - course10.ppt

Microsoft PowerPoint - course10.ppt Java 程式設計基礎班 (10) 劉根豪台大電機所網路資料庫研究室 Email: kenliu@arbor.ee.ntu.edu.tw 1 回顧 Java Applet 2 1 Database & JDBC 為什麼使用資料庫? JDBC 簡介 Access 使用 資料庫連結 資料取得 3 為什麼使用資料庫? 對大量的資料處理與維護較容易, 相對於檔案儲存方式 File 對資料的表現方式, 比較缺乏.

More information

RunPC2_.doc

RunPC2_.doc PowerBuilder 8 (5) PowerBuilder Client/Server Jaguar Server Jaguar Server Connection Cache Thin Client Internet Connection Pooling EAServer Connection Cache Connection Cache Connection Cache Connection

More information

Microsoft Word - 28935样章.dot

Microsoft Word - 28935样章.dot 21 世 纪 高 职 高 专 规 划 教 材 系 列 何 福 贵 张 梅 编 著 机 械 工 业 出 版 社 IV 本 书 全 面 地 介 绍 了 网 页 制 作 技 术 及 其 相 关 理 论 全 书 共 分 12 章, 包 括 绪 论 网 站 的 创 建 与 管 理 网 页 基 本 元 素 实 现 网 页 页 面 布 局 实 现 表 单 的 应 用 CSS 与 模 板 使 用 Div 和 AP

More information

Oracle 4

Oracle 4 Oracle 4 01 04 Oracle 07 Oracle Oracle Instance Oracle Instance Oracle Instance Oracle Database Oracle Database Instance Parameter File Pfile Instance Instance Instance Instance Oracle Instance System

More information

59 1 CSpace 2 CSpace CSpace URL CSpace 1 CSpace URL 2 Lucene 3 ID 4 ID Web 1. 2 CSpace LireSolr 3 LireSolr 3 Web LireSolr ID

59 1 CSpace 2 CSpace CSpace URL CSpace 1 CSpace URL 2 Lucene 3 ID 4 ID Web 1. 2 CSpace LireSolr 3 LireSolr 3 Web LireSolr ID 58 2016. 14 * LireSolr LireSolr CEDD Ajax CSpace LireSolr CEDD Abstract In order to offer better image support services it is necessary to extend the image retrieval function of our institutional repository.

More information

JSP常用技巧汇总.doc

JSP常用技巧汇总.doc JSP 应用指南 序...7 一 JSP 语法...8 1 注释...8 ...8 ...8 2 声明...8 ...8 3 表达式...8 ...8 4 脚本...8 ...8 5 页面指令...9 ...9 6 include 指令...9 ...9

More information

untitled

untitled 1 Access 料 (1) 立 料 [] [] [ 料 ] 立 料 Access 料 (2) 料 [ 立 料 ] Access 料 (3) 料 料 料 料 料 料 欄 ADO.NET ADO.NET.NET Framework 類 來 料 料 料 料 料 Ex MSSQL Access Excel XML ADO.NET 連 .NET 料.NET 料 料來 類.NET Data Provider

More information

RUN_PC連載_12_.doc

RUN_PC連載_12_.doc PowerBuilder 8 (12) PowerBuilder 8.0 PowerBuilder PowerBuilder 8 PowerBuilder 8 / IDE PowerBuilder PowerBuilder 8.0 PowerBuilder PowerBuilder PowerBuilder PowerBuilder 8.0 PowerBuilder 6 PowerBuilder 7

More information

设计模式 Design Patterns

设计模式 Design Patterns 丁勇 Email:18442056@QQ.com 学习目标 描述 JSP 表达式语言的语法 认识使用 JSP 表达式的优点 在 JSP 中使用表达式语言 表达式语言简介 5 1 EL 为表达式语言 由两个组开发 JSP 标准标签库专家组 JSP 2.0 专家组 JSP 表达式语言的语法 ${EL Expression} JSP EL 表达式用于以下情形 静态文本 标准标签和自定义标签 表达式语言简介

More information

untitled

untitled 1 Access 料 (1) 立 料 [] [] [ 料 ] 立 料 Access 料 (2) 料 [ 立 料 ] Access 料 (3) 料 料 料 料 料 料 欄 ADO.NET ADO.NET.NET Framework 類 來 料 料 料 料 料 Ex MSSQL Access Excel XML ADO.NET 連 .NET 料.NET 料 料來 類.NET Data Provider

More information

SQL Server SQL Server SQL Mail Windows NT

SQL Server SQL Server SQL Mail Windows NT ... 3 11 SQL Server... 4 11.1... 7 11.2... 9 11.3... 11 11.4... 30 11.5 SQL Server... 30 11.6... 31 11.7... 32 12 SQL Mail... 33 12.1Windows NT... 33 12.2SQL Mail... 34 12.3SQL Mail... 34 12.4 Microsoft

More information

基于ECO的UML模型驱动的数据库应用开发1.doc

基于ECO的UML模型驱动的数据库应用开发1.doc ECO UML () Object RDBMS Mapping.Net Framework Java C# RAD DataSetOleDbConnection DataGrod RAD Client/Server RAD RAD DataReader["Spell"].ToString() AObj.XXX bug sql UML OR Mapping RAD Lazy load round trip

More information

EJB-Programming-4-cn.doc

EJB-Programming-4-cn.doc EJB (4) : (Entity Bean Value Object ) JBuilder EJB 2.x CMP EJB Relationships JBuilder EJB Test Client EJB EJB Seminar CMP Entity Beans Session Bean J2EE Session Façade Design Pattern Session Bean Session

More information

untitled

untitled OO 1 SQL Server 2000 2 SQL Server 2000 3 SQL Server 2000 DDL 1 2 3 DML 1 INSERT 2 DELETE 3 UPDATE SELECT DCL 1 SQL Server 2 3 GRANT REVOKE 1 2 1 2 3 4 5 6 1 SQL Server 2000 SQL Server SQL / Microsoft SQL

More information

Microsoft Word - PHP7Ch01.docx

Microsoft Word - PHP7Ch01.docx PHP 01 1-6 PHP PHP HTML HTML PHP CSSJavaScript PHP PHP 1-6-1 PHP HTML PHP HTML 1. Notepad++ \ch01\hello.php 01: 02: 03: 04: 05: PHP 06:

More information

untitled

untitled http://idc.hust.edu.cn/~rxli/ 1.1 1.2 1.3 1.4 1.5 1.6 2 1.1 1.1.1 1.1.2 1.1.3 3 1.1.1 Data (0005794, 601,, 1, 1948.03.26, 01) (,,,,,) 4 1.1.1 Database DB 5 1.1.1 (DBMS) DDL ( Create, Drop, Alter) DML(

More information

數位圖書館/博物館相關標準 2

數位圖書館/博物館相關標準 2 數 2 立 XML (Extensibility) XML 行 (Self-description) (Structure) XML (Validation) XML DTD 行 XML 列 XML-Language SGML without tears Self-describing Documents Well-formed and Valid Documents XML-Link Power

More information

没 有 多 余 的 Contruol 或 Action 了 原 来 Domain 层 被 服 务 层 Service layer 遮 挡, 在 右 边 图 中, 则 Domain 层 直 接 暴 露 给 前 台 了, 没 有 被 遮 挡, 裸 露 了 这 样 一 步 到 位 实 现 领 域 模 型

没 有 多 余 的 Contruol 或 Action 了 原 来 Domain 层 被 服 务 层 Service layer 遮 挡, 在 右 边 图 中, 则 Domain 层 直 接 暴 露 给 前 台 了, 没 有 被 遮 挡, 裸 露 了 这 样 一 步 到 位 实 现 领 域 模 型 文 章 编 号 :1007-757X(2012)1-0036-04 领 域 驱 动 模 型 的 WEB 软 件 系 统 设 计 研 究 摘 要 : J2EE 3 JDK1.7 Tomcat WEB 关 键 词 : 中 图 分 类 号 :TP311 文 献 标 志 码 :A 0 引 言 Web 软 件 系 统 的 分 层 结 构 典 型 的 J2EE 软 件 系 统 开 发 方 法 分 为 三 层 结

More information

2 SGML, XML Document Traditional WYSIWYG Document Content Presentation Content Presentation Structure Structure? XML/SGML 3 2 SGML SGML Standard Gener

2 SGML, XML Document Traditional WYSIWYG Document Content Presentation Content Presentation Structure Structure? XML/SGML 3 2 SGML SGML Standard Gener SGML HTML XML 1 SGML XML Extensible Markup Language XML SGML Standard Generalized Markup Language, ISO 8879, SGML HTML ( Hypertext Markup Language HTML) (Markup Language) (Tag) < > Markup (ISO) 1986 SGML

More information

untitled

untitled J2EE 2006 4 J2EE,,13.(2 ) EJB,JSP, Java Servlet.(2 ) J2EE MVC,struts.(2 ) :J2EE 1. J2EE J2EE J2EE API . Java 2 3 : J2ME:Java 2 Platform Micro Edition J2SE:Java 2 Platform Standard Edition J2EE:Java 2 Platform

More information

ebook60-13

ebook60-13 13 H T M L F l a s h J a v a < i m g > 13.1 H T M L A c t i v e X H T M L < i m g > HTML 4.0 < o b j e c t > < / o b j e c t > 13.1.1 H T M L < o b j e c t > c l a s s i d d a t a < p a r a m > 1.

More information

resp.getwriter().print(j + "*" + i + "=" + j * i+" "); resp.getwriter().print("<br/>"); protected void dopost(httpservletrequest req, HttpServletRespo

resp.getwriter().print(j + * + i + = + j * i+ ); resp.getwriter().print(<br/>); protected void dopost(httpservletrequest req, HttpServletRespo 第三章补充案例 案例 3-1 HttpServlet 一 案例描述 1 考核知识点名称 :HttpServlet 编号 : 2 练习目标 掌握 HttpServlet 的 doget() 方法和 dopost() 方法 3 需求分析由于大多数 Web 应用都是通过 HTTP 协议和客户端进行交互, 因此, 在 Servlet 接口中, 提供了 一个抽象类 javax.servlet.http.httpservlet,

More information

untitled

untitled Database System Principle Database System Principle 1 SQL 3.1 SQL 3.2-3.3 3.4 3.5 3.6 Database System Principle 2 3.1 SQL SQL Structured Query Language SQL Database System Principle 3 SQL 3.1.1 SQL 3.1.2

More information

jdbc:hsqldb:hsql: jdbc:hsqldb:hsqls: jdbc:hsqldb:http: jdbc:hsqldb:https: //localhost //192.0.0.10:9500 / /dbserver.somedomain.com /an_alias /enrollme

jdbc:hsqldb:hsql: jdbc:hsqldb:hsqls: jdbc:hsqldb:http: jdbc:hsqldb:https: //localhost //192.0.0.10:9500 / /dbserver.somedomain.com /an_alias /enrollme sh -x path/to/hsqldb start > /tmp/hstart.log 2>&1 第 4 章 高 级 话 题 4.1 本 章 目 的 许 多 在 论 坛 或 邮 件 组 中 重 复 出 现 的 问 题 将 会 在 本 文 档 中 进 行 解 答 如 果 你 打 算 在 应 用 程 序 中 使 用 HSQLDB 的 话, 那 么 你 应 该 好 好 阅 读 一 下 本 文 章 本 章

More information

1 1 大概思路 创建 WebAPI 创建 CrossMainController 并编写 Nuget 安装 microsoft.aspnet.webapi.cors 跨域设置路由 编写 Jquery EasyUI 界面 运行效果 2 创建 WebAPI 创建 WebAPI, 新建 -> 项目 ->

1 1 大概思路 创建 WebAPI 创建 CrossMainController 并编写 Nuget 安装 microsoft.aspnet.webapi.cors 跨域设置路由 编写 Jquery EasyUI 界面 运行效果 2 创建 WebAPI 创建 WebAPI, 新建 -> 项目 -> 目录 1 大概思路... 1 2 创建 WebAPI... 1 3 创建 CrossMainController 并编写... 1 4 Nuget 安装 microsoft.aspnet.webapi.cors... 4 5 跨域设置路由... 4 6 编写 Jquery EasyUI 界面... 5 7 运行效果... 7 8 总结... 7 1 1 大概思路 创建 WebAPI 创建 CrossMainController

More information

Java java.lang.math Java Java.util.Random : ArithmeticException int zero = 0; try { int i= 72 / zero ; }catch (ArithmeticException e ) { // } 0,

Java java.lang.math Java Java.util.Random : ArithmeticException int zero = 0; try { int i= 72 / zero ; }catch (ArithmeticException e ) { // } 0, http://debut.cis.nctu.edu.tw/~chi Java java.lang.math Java Java.util.Random : ArithmeticException int zero = 0; try { int i= 72 / zero ; }catch (ArithmeticException e ) { // } 0, : POSITIVE_INFINITY NEGATIVE_INFINITY

More information

EJB-Programming-3.PDF

EJB-Programming-3.PDF :, JBuilder EJB 2.x CMP EJB Relationships JBuilder EJB Test Client EJB EJB Seminar CMP Entity Beans Value Object Design Pattern J2EE Design Patterns Value Object Value Object Factory J2EE EJB Test Client

More information

+ 数学运算符, 加操作 - 数学运算符, 减操作或者对一个值取反 * 数学运算符, 乘操作 / 或 div % 或 mod == 或 e!= 或 ne < 或 lt > 或 gt <= 或 le >= 或 ge && 或 and 或 or! 或 not 数学运算符, 除操作数学运算符, 模操作 (

+ 数学运算符, 加操作 - 数学运算符, 减操作或者对一个值取反 * 数学运算符, 乘操作 / 或 div % 或 mod == 或 e!= 或 ne < 或 lt > 或 gt <= 或 le >= 或 ge && 或 and 或 or! 或 not 数学运算符, 除操作数学运算符, 模操作 ( JSTL 概述 概述 在 JSP 页面中, 使用标签库代替传统的 Java 片段语言来实现页面的显示逻辑已经不是新技术了, 然而, 由自定义标签很容易造成重复定义和非标准的实现 鉴于此, 出现了 JSTL ( JSP Standard Tag Library ) 大多数 JSP 页面逻辑提供了实现的 JSTL 技术, 该技术本身就是一个标签库 Sun 公司 Java 规范标准的 JSTL 由 apache

More information

p.2 1 <HTML> 2 3 <HEAD> 4 <TITLE> </TITLE> 5 </HEAD> 6 7 <BODY> 8 <H3><B> </B></H3> 9 <H4><I> </I></H4> 10 </BODY> </HTML> 1. HTML 1. 2.

p.2 1 <HTML> 2 3 <HEAD> 4 <TITLE> </TITLE> 5 </HEAD> 6 7 <BODY> 8 <H3><B> </B></H3> 9 <H4><I> </I></H4> 10 </BODY> </HTML> 1. HTML 1. 2. 2005-06 p.1 HTML HyperText Mark-up Language 1. HTML Logo, Pascal, C++, Java HTML 2. HTML (tag) 3. HTML 4. HTML 1. HTML 2. 3. FTP HTML HTML html 1. html html html cutehtmleasyhtml 2. wyswyg (What you see

More information

untitled

untitled 1 .NET 料.NET 料 料來 類.NET Data Provider SQL.NET Data Provider System.Data.SqlClient 料 MS-SQL OLE DB.NET Data Provider System.Data.OleDb 料 Dbase FoxPro Excel Access Oracle Access ODBC.NET Data Provider 料

More information

epub83-1

epub83-1 C++Builder 1 C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r 1.1 1.1.1 1-1 1. 1-1 1 2. 1-1 2 A c c e s s P a r a d o x Visual FoxPro 3. / C / S 2 C + + B u i l d e r / C

More information

ebook 96-16

ebook 96-16 16 13 / ( ) 16-1 SQL*Net/Net8 SQL*Net/Net8 SQL*Net/Net8 16-1 / S Q L SQL*Net V2 N e t 8 S Q L * N e t N e t ( ) 16.1 S Q L O r a c l e S Q L 16 401 ) ( H R _ L I N K create database link p u b l i c (

More information

epub 61-2

epub 61-2 2 Web Dreamweaver UltraDev Dreamweaver 3 We b We b We Dreamweaver UltraDev We b Dreamweaver UltraDev We b We b 2.1 Web We b We b D r e a m w e a v e r J a v a S c r i p t We b We b 2.1.1 Web We b C C +

More information

1-1 database columnrow record field 不 DBMS Access Paradox SQL Server Linux MySQL Oracle IBM Informix IBM DB2 Sybase 1-2

1-1 database columnrow record field 不 DBMS Access Paradox SQL Server Linux MySQL Oracle IBM Informix IBM DB2 Sybase 1-2 CHAPTER 1 Understanding Core Database Concepts 1-1 database columnrow record field 不 DBMS Access Paradox SQL Server Linux MySQL Oracle IBM Informix IBM DB2 Sybase 1-2 1 Understanding Core Database Concepts

More information

untitled

untitled PowerBuilder Tips 利 PB11 Web Service 年度 2 PB Tips PB9 EAServer 5 web service PB9 EAServer 5 了 便 web service 來說 PB9 web service 力 9 PB11 release PB11 web service 力更 令.NET web service PB NVO 論 不 PB 來說 說

More information

mvc

mvc Build an application Tutor : Michael Pan Application Source codes - - Frameworks Xib files - - Resources - ( ) info.plist - UIKit Framework UIApplication Event status bar, icon... delegation [UIApplication

More information

回滚段探究

回滚段探究 oracle oracle internal DBA oracle document oracle concepts oracle document oracle DBWR update t set object_id = '0' where object_id = '12344'; 1 row updated. commit; Commit complete. 0 12344 12344 0 10%

More information

软件概述

软件概述 Cobra DocGuard BEIJING E-SAFENET SCIENCE & TECHNOLOGY CO.,LTD. 2003 3 20 35 1002 010-82332490 http://www.esafenet.com Cobra DocGuard White Book 1 1....4 1.1...4 1.2 CDG...4 1.3 CDG...4 1.4 CDG...5 1.5

More information

目錄

目錄 資 訊 素 養 線 上 教 材 單 元 五 資 料 庫 概 論 及 Access 5.1 資 料 庫 概 論 5.1.1 為 什 麼 需 要 資 料 庫? 日 常 生 活 裡 我 們 常 常 需 要 記 錄 一 些 事 物, 以 便 有 朝 一 日 所 記 錄 的 事 物 能 夠 派 得 上 用 場 我 們 能 藉 由 記 錄 每 天 的 生 活 開 銷, 就 可 以 在 每 個 月 的 月 底 知

More information

OSWorkflow Documentation

OSWorkflow Documentation OSWorkflow Documentation Update Time: 05/09/15 OSWorkflow Java workflow engine API 理 flow 行 XML 來 流 Database UI 不 流 GUI Designer end user 行 JSP+Servlet 行 OSWorkflow 2.8 說 2.7 2.7 了 OSWorkflow library library

More information

基于UML建模的管理管理信息系统项目案例导航——VB篇

基于UML建模的管理管理信息系统项目案例导航——VB篇 PowerBuilder 8.0 PowerBuilder 8.0 12 PowerBuilder 8.0 PowerScript PowerBuilder CIP PowerBuilder 8.0 /. 2004 21 ISBN 7-03-014600-X.P.. -,PowerBuilder 8.0 - -.TP311.56 CIP 2004 117494 / / 16 100717 http://www.sciencep.com

More information

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile..

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile.. WebSphere Studio Application Developer IBM Portal Toolkit... 1/21 WebSphere Studio Application Developer IBM Portal Toolkit Portlet Doug Phillips (dougep@us.ibm.com),, IBM Developer Technical Support Center

More information

3.1 num = 3 ch = 'C' 2

3.1 num = 3 ch = 'C' 2 Java 1 3.1 num = 3 ch = 'C' 2 final 3.1 final : final final double PI=3.1415926; 3 3.2 4 int 3.2 (long int) (int) (short int) (byte) short sum; // sum 5 3.2 Java int long num=32967359818l; C:\java\app3_2.java:6:

More information

2 Java 语 言 程 序 设 计 教 程 1.2.1 简 单 性 Java 语 言 的 语 法 与 C 语 言 和 C++ 语 言 很 接 近, 使 得 大 多 数 程 序 员 很 容 易 学 习 和 使 用 Java 另 一 方 面,Java 丢 弃 了 C++ 中 很 少 使 用 的 很 难

2 Java 语 言 程 序 设 计 教 程 1.2.1 简 单 性 Java 语 言 的 语 法 与 C 语 言 和 C++ 语 言 很 接 近, 使 得 大 多 数 程 序 员 很 容 易 学 习 和 使 用 Java 另 一 方 面,Java 丢 弃 了 C++ 中 很 少 使 用 的 很 难 第 1 章 Java 概 述 Java 的 诞 生 Java 的 特 点 Java 开 发 环 境 安 装 与 配 置 创 建 并 运 行 一 个 简 单 的 Java 程 序 Java 语 言 是 当 今 计 算 机 软 件 行 业 中 最 热 门 的 网 络 编 程 语 言, 以 Java 为 核 心 的 芯 片 技 术 编 译 技 术 数 据 库 连 接 技 术, 以 及 基 于 企 业 级

More information

季刊9web.indd

季刊9web.indd 在 全 国 现 场 会 上 成 功 展 示 全 国 烟 叶 收 购 暨 现 代 烟 草 农 业 建 设 现 场 会 7 月 6 日 至 8 日 在 昆 明 召 开 在 国 家 局 的 领 导 下, 由 我 司 技 术 开 发 的 烟 站 ( 单 元 ) 烟 叶 管 理 信 息 系 统 在 现 场 会 上 成 功 展 示, 并 得 到 参 会 领 导 及 代 表 们 的 关 注 与 认 可 该 系 统

More information

Microsoft PowerPoint - 04-Request-Headers-Chinese.ppt

Microsoft PowerPoint - 04-Request-Headers-Chinese.ppt 2004 Marty Hall 客户请求的处理 : HTTP 请求报头 JSP, Servlet, & Struts Training Courses: http://courses.coreservlets.com Available in US, China, Taiwan, HK, and Worldwide 2 JSP and Servlet Books from Sun Press: http://www.coreservlets.com

More information

CDWA Mapping. 22 Dublin Core Mapping

CDWA Mapping. 22 Dublin Core Mapping (version 0.23) 1 3... 3 3 3 5 7 10 22 CDWA Mapping. 22 Dublin Core Mapping. 24 26 28 30 33 2 3 X version 0.2 ( ) 4 Int VarcharText byte byte byte Id Int 10 Management Main Code Varchar 30 Code Original

More information

2.4 Selenium Python Selenium Selenium Selenium Selenium pip install selenium Chrome WebDriver Google Chrome (Linux, Mac, Windows) Chrome WebDriv

2.4 Selenium Python Selenium Selenium Selenium Selenium pip install selenium Chrome WebDriver Google Chrome (Linux, Mac, Windows) Chrome WebDriv Chapter 02 大數據資料爬取與分析 Python Python Requests BeautifulSoup Regular Expression Selenium Pandas Python 2.4 Selenium Python 2.4.1 Selenium Selenium Selenium Selenium pip install selenium Chrome WebDriver

More information

untitled

untitled . Version 1.0 2015 7 1. IT 1.. IBM IBM IBM WBI IBM WBI Jasdaq 3G 9 Java Hitachi Suntory Panansonic 2. IT . 10 Java Software AG (Dachieve) (Angel Engineers Inc.) 360,, Software AG XML,.,,,,.. CRM TOLO 3G

More information

Partition Key: 字 符 串 类 型, 表 示 当 前 Entity 的 分 区 信 息 这 个 Property 对 于 Table Service 自 动 纵 向 和 横 向 扩 展 至 关 重 要 Row Key: 字 符 串 类 型, 在 给 定 Partition Key 的

Partition Key: 字 符 串 类 型, 表 示 当 前 Entity 的 分 区 信 息 这 个 Property 对 于 Table Service 自 动 纵 向 和 横 向 扩 展 至 关 重 要 Row Key: 字 符 串 类 型, 在 给 定 Partition Key 的 4.2 使 用 Table Service Table Service 相 对 来 说 是 三 个 Storage Service 中 最 好 理 解 和 最 易 于 接 受 的, 它 主 要 用 来 存 储 结 构 化 数 据 但 是 Table Service 却 并 不 是 一 个 关 系 型 数 据 库 Table Service 由 两 个 部 分 组 成 :Table 和 Entity

More information

untitled

untitled 2006 6 Geoframe Geoframe 4.0.3 Geoframe 1.2 1 Project Manager Project Management Create a new project Create a new project ( ) OK storage setting OK (Create charisma project extension) NO OK 2 Edit project

More information

<4D6963726F736F667420576F7264202D20BBF9D3DA416E64726F6964C6BDCCA8B5C4B5E7D7D3C5C4C2F4CFB5CDB32E646F63>

<4D6963726F736F667420576F7264202D20BBF9D3DA416E64726F6964C6BDCCA8B5C4B5E7D7D3C5C4C2F4CFB5CDB32E646F63> 基 于 Android 平 台 的 电 子 拍 卖 系 统 摘 要 本 电 子 拍 卖 系 统 其 实 就 是 一 个 电 子 商 务 平 台, 只 要 将 该 系 统 部 署 到 互 联 网 上, 客 户 都 可 以 在 该 系 统 上 发 布 想 出 售 的 商 品, 也 可 以 对 拍 卖 中 的 商 品 参 与 竞 价 整 个 过 程 无 须 人 工 干 预, 由 系 统 自 动 完 成 本

More information

概述

概述 OPC Version 1.6 build 0910 KOSRDK Knight OPC Server Rapid Development Toolkits Knight Workgroup, eehoo Technology 2002-9 OPC 1...4 2 API...5 2.1...5 2.2...5 2.2.1 KOS_Init...5 2.2.2 KOS_InitB...5 2.2.3

More information

目 录 1. 前 言... 1 2. 为 什 么 要 用 ESB... 1 2.1. 技 术 发 展... 1 2.2. 业 务 需 求... 3 2.3. IT 需 求... 4 2.4. IT 与 业 务 一 致 性 要 求... 5 3. TongIntegrator ESB v5 简 介..

目 录 1. 前 言... 1 2. 为 什 么 要 用 ESB... 1 2.1. 技 术 发 展... 1 2.2. 业 务 需 求... 3 2.3. IT 需 求... 4 2.4. IT 与 业 务 一 致 性 要 求... 5 3. TongIntegrator ESB v5 简 介.. TongTech TongIntegrator ESB v5 ( 简 称 TongESB v5) 产 品 白 皮 书 北 京 东 方 通 科 技 公 司 2015 年 目 录 1. 前 言... 1 2. 为 什 么 要 用 ESB... 1 2.1. 技 术 发 展... 1 2.2. 业 务 需 求... 3 2.3. IT 需 求... 4 2.4. IT 与 业 务 一 致 性 要 求...

More information

A-1 HTML A-1-1 HTML 1 HTML JSP HTML HTML HTML JSP A HTML HTML HTML HTML HTML HTML HTML HTML.htm.html HTML Windows NotePad HTML IE [ / ] NotePad A-2

A-1 HTML A-1-1 HTML 1 HTML JSP HTML HTML HTML JSP A HTML HTML HTML HTML HTML HTML HTML HTML.htm.html HTML Windows NotePad HTML IE [ / ] NotePad A-2 HTML A-1 HTML A-2 A-2 HTML A-8 A-3 A-14 A-4 A-26 A-5 A-30 A-6 A-42 A-1 HTML A-1-1 HTML 1 HTML JSP HTML HTML HTML JSP A HTML HTML HTML HTML HTML HTML HTML HTML.htm.html HTML Windows NotePad HTML IE [ /

More information

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO Car DVD New GUI IR Flow User Manual V0.1 Jan 25, 2008 19, Innovation First Road Science Park Hsin-Chu Taiwan 300 R.O.C. Tel: 886-3-578-6005 Fax: 886-3-578-4418 Web: www.sunplus.com Important Notice SUNPLUS

More information

epub 94-3

epub 94-3 3 A u t o C A D L AY E R L I N E T Y P E O S N A P S T Y L E X R E F - AutoLISP Object ARX A u t o C A D D C L A u t o C A D A u t o d e s k P D B D C L P D B D C L D C L 3.1 Wi n d o w s A u t o C A D

More information

Servlet技术

Servlet技术 Servlet 技 术 1 复 习 几 个 要 点 2 请 求 (request) 用 户 何 时 发 起 一 个 请 求 点 击 一 个 链 接 提 交 一 个 表 单 在 地 址 栏 键 入 一 个 Web 地 址! 请 求 通 过 URL 来 指 定 http://www.neusoft.edu.cn:80/cs/news.html URL 的 构 成 : http:// 代 表 超 文 本

More information

ebook 165-5

ebook 165-5 3 5 6 7 8 9 [ 3. 3 ] 3. 3 S Q L S Q 4. 21 S Q L S Q L 4 S Q 5 5.1 3 ( ) 78 5-1 3-8 - r e l a t i o n t u p l e c a r d i n a l i t y a t t r i b u t e d e g r e e d o m a i n primary key 5-1 3 5-1 S #

More information

untitled

untitled ArcGIS Server Web services Web services Application Web services Web Catalog ArcGIS Server Web services 6-2 Web services? Internet (SOAP) :, : Credit card authentication, shopping carts GIS:, locator services,

More information

untitled

untitled Data Source 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 8-1 Data Source 8-2 Data Source 8-3 Data Source 8-4 Data Source 8-5 DataSourceID 8-6 DataSourceMode 8-7 DataSource 8-8 8-9 Parameter Direction

More information

<ADB6ADB1C25EA8FAA6DB2D4D56432E706466>

<ADB6ADB1C25EA8FAA6DB2D4D56432E706466> packages 3-31 PART 3-31 03-03 ASP.NET ASP.N MVC ASP.NET ASP.N MVC 4 ASP.NET ASP.NE MVC Entity Entity Framework Code First 2 TIPS Visual Studio 20NuGetEntity NuGetEntity Framework5.0 CHAPTER 03 59 3-3-1

More information

D C 93 2

D C 93 2 D9223468 3C 93 2 Java Java -- Java UML Java API UML MVC Eclipse API JavadocUML Omendo PSPPersonal Software Programming [6] 56 8 2587 56% Java 1 epaper(2005 ) Java C C (function) C (reusability) eat(chess1,

More information

untitled

untitled 1 Outline 數 料 數 數 列 亂數 練 數 數 數 來 數 數 來 數 料 利 料 來 數 A-Z a-z _ () 不 數 0-9 數 不 數 SCHOOL School school 數 讀 school_name schoolname 易 不 C# my name 7_eleven B&Q new C# (1) public protected private params override

More information

一 個 SQL Injection 實 例 的 啟 示 頁 2 / 6 因 此, 在 知 名 網 站 上 看 到 SQL Injection, 讓 人 驚 心, 卻 不 意 外 網 站 專 案 外 包 是 目 前 業 界 的 常 態, 而 在 價 格 取 勝 的 制 度 下, 低 價 得 標 的 S

一 個 SQL Injection 實 例 的 啟 示 頁 2 / 6 因 此, 在 知 名 網 站 上 看 到 SQL Injection, 讓 人 驚 心, 卻 不 意 外 網 站 專 案 外 包 是 目 前 業 界 的 常 態, 而 在 價 格 取 勝 的 制 度 下, 低 價 得 標 的 S 一 個 SQL Injection 實 例 的 啟 示 頁 1 / 6 你 的 網 站 在 裸 奔 嗎? 一 個 SQL Injection 實 例 的 啟 示 作 者 : 李 明 儒 SQL Injection( 資 料 隱 碼 攻 擊 ) 問 題 早 就 不 是 什 麼 新 聞, 但 前 陣 子 在 一 個 頗 具 知 名 度 的 活 動 網 站 上, 赫 然 發 現 它 大 刺 刺 地 現 身!

More information

untitled

untitled 12-1 -2 VC# Web Blog 12-1 -1-1 12-1.1-1 C:\ ChartModuleSample_CSharp\Application\2001\ Files\ 4096 KB 120 Web.Config httpruntime maxrequestlength executiontimeout 12-2

More information

f2.eps

f2.eps 前 言, 目 录 产 品 概 况 1 SICAM PAS SICAM 电 力 自 动 化 系 统 配 置 和 使 用 说 明 配 置 2 操 作 3 实 时 数 据 4 人 机 界 面 5 SINAUT LSA 转 换 器 6 状 态 与 控 制 信 息 A 版 本 号 : 08.03.05 附 录, 索 引 安 全 标 识 由 于 对 设 备 的 特 殊 操 作 往 往 需 要 一 些 特 殊 的

More information

习题1

习题1 习 题 1 数 据 库 系 统 基 本 概 念 1.1 名 词 解 释 DB DB 是 长 期 存 储 在 计 算 机 内 有 组 织 的 统 一 管 理 的 相 关 数 据 的 集 合 DB 能 为 各 种 用 户 共 享, 具 有 较 小 冗 余 度 数 据 间 联 系 紧 密 而 又 有 较 高 的 数 据 独 立 性 等 特 点 DBMS 是 位 于 用 户 与 操 作 系 统 之 间 的

More information

關於本書 l 3 PhoneGap Appcelerator Titanium Sencha Touch (wrapper framework) Native App PhoneGap Build Native App Hybrid App Java Objective-C Android SDK

關於本書 l 3 PhoneGap Appcelerator Titanium Sencha Touch (wrapper framework) Native App PhoneGap Build Native App Hybrid App Java Objective-C Android SDK 2 l 跨裝置網頁設計 Android ios Windows 8 BlackBerry OS Android HTML 5 HTML 5 HTML 4.01 HTML 5 CSS 3 CSS 3 CSS 2.01 CSS 3 2D/3D PC JavaScript

More information

SiteView技术白皮书

SiteView技术白皮书 SiteView ECC V6.2 技 术 白 皮 书 游 龙 网 络 科 技 ( 中 国 ) 有 限 公 司 DragonFlow Networks(China),Inc. 目 录 第 一 章 产 品 概 述... 3 第 二 章 系 统 结 构... 6 一 系 统 架 构... 7 1 用 户 管 理 模 块... 7 2 Web Server... 8 3 存 储 加 密 模 块... 8

More information

05 01 accordion UI containers 03 Accordion accordion UI accordion 54

05 01 accordion UI containers 03 Accordion accordion UI accordion 54 jquery UI plugin Accordion 05 01 accordion UI containers 03 Accordion accordion UI accordion 54 05 jquery UI plugin 3-1

More information

ebook45-5

ebook45-5 5 S Q L SQL Server 5.1 5-1 SQL Server 5-1 A B S A C O S A S I N ATA N AT N 2 C E I L I N G C O S C O T D E G R E E S E X P F L O O R L O G L O G 10 P I P O W E R R A D I A N S R A N D R O U N D S I G N

More information

1

1 PRIMETON TECHNOLOGIES, LTD. EOS EOS Manager No part of this document may be reproduced, stored in any electronic retrieval system, or transmitted in any form or by any means, mechanical, photocopying,

More information

第一章 章标题-F2 上空24,下空24

第一章 章标题-F2 上空24,下空24 Web 9 XML.NET Web Web Service Web Service Web Service Web Service Web Service ASP.NET Session Application SOAP Web Service 9.1 Web Web.NET Web Service Web SOAP Simple Object Access Protocol 9.1.1 Web Web

More information

2 Requirements Documentation Doc Name Doc No. 1.0 Version No. Total Page Generated By V6.0.0 Generated Date 2011/10/21 Checked By Checked Date 2011/10

2 Requirements Documentation Doc Name Doc No. 1.0 Version No. Total Page Generated By V6.0.0 Generated Date 2011/10/21 Checked By Checked Date 2011/10 1 2 Requirements Documentation Doc Name Doc No. 1.0 Version No. Total Page Generated By V6.0.0 Generated Date 2011/10/21 Checked By Checked Date 2011/10/26 Approved By Approved Date Version Modification

More information