⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 digester in tomcat--rosonsandy.htm

📁 这是最详细的对Tomcat4以上版本的解析。
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0055)http://rosonsandy.blogdriver.com/rosonsandy/871529.html -->
<HTML><HEAD><TITLE>Digester in tomcat--rosonsandy</TITLE>
<META http-equiv=Content-Type content="text/html; charset=GBK">
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=Expires content=0>
<META 
content="ConnectorDigester in tomcatclassloader in tomcat[转贴加修改]  博客 博客动力 blog blogdriver blogger 中国" 
name=description>
<META 
content="rosonsandy ConnectorDigester in tomcatclassloader in tomcat[转贴加修改] 博客 博客动力 blog blogdriver blogger 中国" 
name=keywords><LINK href="Digester in tomcat--rosonsandy.files/diary.css" 
type=text/css rel=stylesheet>
<SCRIPT language=JavaScript 
src="Digester in tomcat--rosonsandy.files/UBB.js"></SCRIPT>

<SCRIPT src="Digester in tomcat--rosonsandy.files/blog.js" 
type=text/javascript></SCRIPT>

<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
<BODY>
<DIV id=container>
<DIV id=header>
<H1 class=title><A 
href="http://rosonsandy.blogdriver.com/rosonsandy/index.html">rosonsandy</A></H1></DIV>
<DIV id=category><A title=上一篇 
href="http://rosonsandy.blogdriver.com/rosonsandy/871512.html">Connector</A>- -| 
<A href="http://rosonsandy.blogdriver.com/rosonsandy/index.html">回首页</A> | <A 
href="http://rosonsandy.blogdriver.com/rosonsandy/catalog_2005.html">2005年索引</A> 
| - -<A title=下一篇 
href="http://rosonsandy.blogdriver.com/rosonsandy/871539.html">classloader in 
tomcat[转贴加修改]</A></DIV>
<DIV class=entity>
<H2 class=diaryTitle>Digester in tomcat- -</H2>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 

<P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN 
lang=EN-US><FONT face="Times New Roman">Digester </FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">在</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">tomcat</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中与</SPAN><B><SPAN 
style="FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 宋体">配置文件<SPAN 
lang=EN-US> *.xml</SPAN></SPAN></B><SPAN 
style="FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 宋体; mso-bidi-font-weight: bold">相结合</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">发挥了重大作用,</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">Digester here act as role to 
</FONT></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN 
lang=EN-US><FONT face="Times New Roman">instance every object by a chain between 
each object </FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。</SPAN></FONT><SPAN 
lang=EN-US></SPAN></P>
<P><FONT size=2></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">首先要知道</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">Digester</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的作用和工作原理,可以参考如下文章:</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A 
href="http://www.theserverside.com/articles/article.tss?l=Digester"><FONT 
face="Times New Roman" 
size=2>http://www.theserverside.com/articles/article.tss?l=Digester</FONT></A></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><A 
href="http://www.onjava.com/pub/a/onjava/2002/10/23/digester.html?page=1"><FONT 
face="Times New Roman" 
size=2>http://www.onjava.com/pub/a/onjava/2002/10/23/digester.html?page=1</FONT></A></SPAN><SPAN 
lang=EN-US></SPAN></P>
<P><FONT size=2></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">有如下几个地方用到了</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">Digester</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">:</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN 
lang=EN-US><FONT face="Times New Roman">1</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN 
lang=EN-US><FONT face="Times New Roman">org<SPAN 
style="COLOR: green">\</SPAN>apache<SPAN 
style="COLOR: green">\</SPAN>catalina<SPAN 
style="COLOR: green">\</SPAN>startup<SPAN 
style="COLOR: green">\</SPAN>Catalina.java </FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">与</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">Tomcat<SPAN 
style="COLOR: green">\</SPAN>conf<SPAN 
style="COLOR: green">\</SPAN>server.xml</FONT></SPAN></FONT><SPAN 
lang=EN-US></SPAN></P>
<P><FONT size=2></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">主要在两个方法中有用到</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman"> <SPAN style="mso-tab-count: 1">&nbsp; 
</SPAN>protected Digester createStartDigester()</FONT></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT 
face="Times New Roman"><FONT size=2><SPAN 
style="mso-tab-count: 6">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN>protected void start()</FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT 
face="Times New Roman" size=2></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">在</SPAN><FONT 
face="Times New Roman"> <SPAN lang=EN-US>protected void start() 
</SPAN></FONT><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中调用</SPAN><FONT 
face="Times New Roman"> <SPAN lang=EN-US>protected Digester 
createStartDigester()</SPAN></FONT></FONT><SPAN lang=EN-US></SPAN></P>
<P><FONT size=2></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">作用:实例化</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">StandardServer</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">StandardEngine</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">StandardHost,并写入相应的属性</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">等。</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"></SPAN></FONT><SPAN 
lang=EN-US><A 
href="http://rosonsandy.blogdriver.com/rosonsandy/879651.html"><FONT 
color=#0000ff>org.apache.startup.Catalina</FONT></A>在这里有一些对方法createStartDigester()的说明</SPAN></P>
<P><FONT size=2></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN 
lang=EN-US><FONT face="Times New Roman">2</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN 
lang=EN-US><FONT face="Times New Roman">org<SPAN 
style="COLOR: green">\</SPAN>apache<SPAN 
style="COLOR: green">\</SPAN>catalina<SPAN 
style="COLOR: green">\</SPAN>startup<SPAN style="COLOR: green">\</SPAN> 
ContextConfig.java </FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">与</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">* .xml </FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">(</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">user.xml</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、</SPAN><SPAN 
lang=EN-US><FONT face="Times New Roman">web.xml</FONT></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">)</SPAN></FONT><SPAN 
lang=EN-US></SPAN></P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -