JSPÁªÏµXMLÓëÊý¾Ý¿â
Êý¾Ý¿âÓ¦ÓÃϵͳ°üÀ¨Êý¾Ý¿â£¬Êý¾Ý¿â¹ÜÀíϵͳ£¬Êý¾Ý¿âÓ¦ÓÃÈý´ó²¿·Ö¡£
ÊÀ½çÉÏ´æÔÚÐí¶àÍêÈ«²»Í¬µÄ¿Í»§Æ½Ì¨£¬ÔÚ²»Í¬Æ½Ì¨¼ä½»»»Êý¾Ý£¬ÐèÒª±£Ö¤Êý¾ÝµÄÍêÕûºÍ·þÎñµÄ¸ßЧ£¬Êý¾Ý¸ñʽµÄת»»ÎÊÌâÍùÍù³ÉΪÖÆÔ¼Web ServiceµÄÆ¿¾±£¬²ÉÓÃXML×÷ΪÊý¾Ý½»»»µÄ±ê×¼£¬¿ÉÒÔʹ¸÷¸öÒ칹ƽ̨ºÍ¸÷ÖÖ¸ñʽµÄÊý¾Ý½øÐÐÊý¾Ý½»»»³ÉΪ¿ÉÄÜ¡£
²»Í¬µÄDBMSÖ®¼ä£¨×¢ÒâÕâÀïÊDz»Í¬µÄDBMSÖ®¼ä£©Ê¹ÓÃODBC»òÕßJDBCÇý¶¯³ÌÐòʵÏÖ¶ÔÓ¦µÄÊý¾Ý¿â²Ù×÷£¬Ê¹ÓÃODBC»òÕßJDBCÇý¶¯³ÌÐòÀ´Í¨ÐÅÖ»Óа²×°ODBC»òÕßJDBCµÄϵͳ²ÅÄܹ»½ÓÊÕÏûÏ¢£¬ºÜ¶à·À»ðǽ²»ÔÊÐíODBCºÍJDBC½øÐÐÐÅÏ¢½»»»£¬ÕâÒ»µã¿ÉÒÔͨ¹ýÔÚ¿Í»§¶ËµÄͨÐŹܵÀµÄÁ½¶Ë¼ÓÉÏXMLµÄ½Ó¿ÚÀ´ÊµÏÖ£¬Í¬Ñù£¬ÒÔijÖÖ·½Ê½·â×°XML£¬²¢ÇÒͨ¹ýÕý³£µÄHTTP¶Ë¿Ú´«ËÍ£¬¿ÉÒÔ½â¾ö·À»ðǽµÄ×èµ²ÎÊÌ⣬±ÈÈçSOAP¾ÍÊÇÕâô×öµÄ¡£
JDBCÊÇJava±à³ÌÓïÑÔÖÐÓÃÀ´¹æ·¶¿Í»§¶Ë³ÌÐòÈçºÎÀ´·ÃÎÊÊý¾Ý¿âµÄAPI£¬ÌṩÁ˲éѯºÍ¸üÐÂÊý¾Ý¿âµÄ·½·¨£¬JDBCÊÇÃæÏò¹ØϵÐÍÊý¾Ý¿âµÄÇý¶¯³ÌÐòÀàÐÍ¡£
JDBCÇý¶¯³ÌÐò¹²·Ö4ÖÖÀàÐÍ
1.JDBC-ODBCÇÅ
½«JDBCµ÷Óô«µÝ¸øODBC£¬ÔÙÈúóÕßµ÷ÓÃÊý¾Ý¿â±¾µØÇý¶¯´úÂ룬ֻҪÓжÔÓ¦µÄODBCÇý¶¯£¬¼¸ºõ¿ÉÒÔ·ÃÎÊËùÓеÄÊý¾Ý¿â£¬µ«ÊÇÖ´ÐÐЧÂʱȽϵͣ¬²»ÊʺϴóÁ¿Êý¾Ý´æÈ¡µÄÓ¦Óá£
2.±¾µØAPIµ÷ÓÃ
ͨ¹ý¿Í»§¶Ë¼ÓÔØÊý¾Ý¿â³§ÉÌÌṩµÄ±¾µØ´úÂë¿â·ÃÎÊÊý¾Ý¿â£¬ÔÚÇý¶¯³ÌÐòÖаüº¬Java´úÂ룻
3.ÍøÂçÐÒéÇý¶¯
¸ø¿Í»§¶ËÌṩһ¸öÍøÂçAPI£¬¿Í»§¶ËJDBCÇý¶¯³ÌÐòʹÓÃÌ×½Ó×Öµ÷Ó÷þÎñÆ÷ÉϵÄÖмä¼þ³ÌÐò£¬ºóÕßÔÙ½«ÆäÇëÇóת»¯ÎªËùÐèµÄ¾ßÌåµÄAPIµ÷Óá£
4.±¾µØÐÒéÇý¶¯
ʹÓÃSocket£¬Ö±½ÓÔÚ¿Í»§¶ËºÍÊý¾Ý¿â¼äͨÐÅ¡£
Ïà¹ØÎĵµ£º
ÕâÊÇÒ»¸öÓÃJAVA W3C DOM ½øÐÐXML²Ù×÷µÄÀý×Ó£¬°üº¬Á˲éѯ¡¢Ôö¼Ó¡¢Ð޸ġ¢É¾³ý¡¢±£´æµÄ»ù±¾²Ù×÷¡£½ÏÍêÕûµÄÃèÊöÁËÒ»¸öXMLµÄÕû¸ö²Ù×÷Á÷³Ì¡£ÊʺϸÕÈëÃÅJAVA XML²Ù×÷µÄÅóÓѲο¼ºÍѧϰ¡£
¼ÙÉèÓÐXMLÎļþ£ºtest1.xml
<?xml version="1.0" encoding="UTF-8"?>
<books>
<book>
<name>¹þÀï²¨Ì ......
Xml, xslt, xsd, xpathÃèÊöÒ»ÏÂ
XML: Extensible Markup LanguageÀ©Õ¹±ê¼ÇÓïÑÔ£¬ÓÃÀ´´¦Àí½á¹¹»¯Îĵµ¡£
XSLT: XSL Transformations¡£ÓÃÀ´½«Ò»ÖÖXMLת»»³ÉÁíÍâÒ»ÖÖXMLÎĵµ¡£Ò²¿ÉÒÔ½«XMLת»»³ÉXHTML»òÕßHTMLÔÚä¯ÀÀÆ÷ÖÐÏÔʾ¡£
XSD: XML Schemas Definition¡£ÓÃÀ´¶¨ÒåXMLÎĵµµÄ½á¹¹¡£XML Schema ÊÇDTD(Document Type Definiti ......
ÏÂÃæµÄ±í¸ñÁгöÁË°üº¬ÔÚDOM Level 1Öеķ½·¨£¬²¢Áгö²»Í¬µÄä¯ÀÀÆ÷ÊÇ·ñÖ§³ÖÏî¡£
·½ ·¨
Ãè Êö
IE
MOZ
OP
SAF
createAttribute
(name
)
Óøø¶¨Ãû³Æname
´´½¨ÌØÐÔ½Úµã
×
×
×
£
createCDATASection
(text
)
Óðüº¬Îı¾
text
µÄÎı¾×Ó½Úµã
´´½ ......
includeÖ¸ÁîÓÃÓÚÔÚµ±Ç°µÄJspÒ³ÃæÖмÓÔØÁíÒ»¸ö¾²Ì¬ÎļþÒ³Ãæ
¸ñʽ£º<%@ include file="±»¼ÓÔصÄÒ³ÃæÎļþÃû"%>
×¢Òâ1. ÔÚ±»¼ÓÔصÄÎļþÖо¡Á¿²»Ê¹ÓÃ<Html>...</Html>ºÍ<Body>...</Body>±ê¼Ç£¬·ñÔò»áÓ°ÏìÔJspÎļþÖÐͬÑùµÄ±ê¼Ç£¬»áµ¼ÖÂÓï·¨
& ......
ÓеÄʱºò»áÍü¼Ç£¬¼Ç¼һÏ£º
<iframe id="xx" name="xx" width="515" height="177" scrolling="no" border="0" marginwidth="0" marginheight="0" frameborder="0" src="Xx.jsp"></iframe>
Ҫʹjsp²»±äÐΣ¬Ö÷ÒªÊÇmarginwidth="0" marginheight="0"Á½¸öÊôÐÔ¡£ ......