JSPÖÐʹÓÃXMLʵÏÖµ¯³öʽ²Ëµ¥
Ó¦ÓÃJSP£¬XMLºÍCSS¼¼ÊõʵÏÖµ¯³öʽ²Ëµ¥µÄ¹¤³Ì¿ò¼Ü¡£
×ۺϲÉÓÃJSP£¬JavaBean£¬XML£¬XSL£¬CSS£¬JavaScript¶àÏî¼¼ÊõµÄÓŵ㡣
ÔÚJSPÖÐʹÓÃXMLÎĵµ£¬XML¶¨ÒåÊý¾Ý¸ñʽ£¬ÔÚJSPÖÐÖ±½ÓÉú³ÉXMLÎļþ£¬ËüÓëJavaBean½»»¥£¬JavaBean¸ºÔð¶ÁÈ¡´æ´¢²Ëµ¥ÏîµÄÎļþ¡£
XSLʵÏÖXMLµ½HTMLµÄת»¯£¬CSSÎļþ¸ºÔðÑùʽµ¥µÄ¶¨Ò壬¶øJavaScript¶¨Òå²Ëµ¥µÄ½»»¥·½Ê½£¬ËûÃDZ˴˶ÀÁ¢¡£
Èç¹ûÐèÒª¸Ä±ä²Ëµ¥µÄÄÚÈÝ£¬Ð޸Ĵæ·Å²Ëµ¥ÄÚÈݵÄÎļþ£»
Èç¹ûÐèÒª¸Ä±ä²Ëµ¥µÄ¸ñ¾Ö£¬ÐÞ¸Ä.xslÎļþ£»
Èç¹ûÐèÒª¸Ä±ä²Ëµ¥µÄÍâ¹Û£¬ÐÞ¸Ä.cssÎļþ£»
Èç¹ûÐèÒª¸Ä±äÓû§µÄ½»»¥·½Ê½£¬ÐÞ¸Ä.jsÎļþ¡£
ÕâЩģ¿éÏ໥¶ÀÁ¢£¬ÐÞ¸ÄÒ»¸ö²»»áÓ°ÏìÕû¸ö³ÌÐòµÄÔËÐС£
Ïà¹ØÎĵµ£º
import java.io.File;
import java.util.concurrent.CountDownLatch;
import com.sleepycat.db.Environment;
import com.sleepycat.db.EnvironmentConfig;
import com.sleepycat.db.LockDetectMode;
import com.sleepycat.dbxml.XmlContainer;
import com.sleepycat.dbxml.XmlContainerConfig;
im ......
»·¾³ÅäÖúú󣬿ª·¢JSP³ÌÐò¾Í·Ç³£¼òµ¥ÁË¡£
File-->New-->Web Project
Ôڸô°¿ÚÖÐÊäÈëһЩ¹¤³Ì»ù±¾ÐÅÏ¢£¬±ÈÈ繤³ÌÃû£¬ÕâÀïÊäÈëΪ test1-01
ÕâÑùÒ»¸ö»ùÓÚJSPµÄÏîÄ¿¾Í½¨Á¢ÆðÀ´ÁË¡£
Package Explorer µÄÏÔʾ·½·¨£º
Windows-->Show View-->Package Explorer ÕâÑù¾ÍÄÜÏÔʾ³öÀ´À²£¡
Ï ......
1¡¢Out¶ÔÏó
Ö÷ÒªÓÃÀ´Ïò¿Í»§¶ËÊä³ö¸÷ÖÖ¸ñʽµÄÊý¾Ý£¬²¢ÇÒ¹ÜÀíÓ¦Ó÷þÎñÆ÷ÉϵÄÊä³ö»º³åÇø£¬Out¶ÔÏóµÄ»ùÀàÊÇjavax.servlet.jsp.JspWriterÀà¡£
OutµÄÖ÷Òª·½·¨£º
out.println(DataType);»òout.print(DataType);
ʵÀý£º
<%@page language="java"
contentType="text/html;charset=gb2312"
import="java.util.*"
%>
&l ......
.dtdÎļþÖÐÈç¹ûÓÐÖÐÎÄ,±ØÐëÁí´æΪUTF-8±àÂë
ÎÊÌâ:
TransformerFactoryΪ³éÏóÀà,²»ÄÜnewʵÀý,µ«ÌṩÁË·½·¨À´»ñµÃ
TransformerFactory factory = TransformerFacory.newInstance();
factory.newDocumentBuilder();
ÕâÀïnewDocumentBuilder()Ϊ³éÏó·½·¨,ΪʲôÄܵ÷ÓÃÄØ?
×¢Òâ:ÕâÀïfactory±äÁ¿Ö¸ÏòµÄÊÇÒ»¸öʵÀý,´ËʵÀýÊ ......
Asp.Net XML²Ù×÷»ùÀà(ÐÞ¸Ä,ɾ³ý,ÐÂÔö,´´½¨)
2009-12-21 16:59
/**********************************************************************************
*
* ¹¦ÄÜ˵Ã÷:XML´¦Àí»ùÀà
* ×÷Õß: Áõ¹¦Ñ«;
* °æ±¾:V0.1(C#2.0);ʱ¼ä:2006-12-13
*
* ******************************************************************** ......