📄 -
字号:
<DIV class=blogstory><SPAN id=Post.ascx_ViewPost_PreviousAndNextEntriesUp>
<H3><A
href="http://blog.csdn.net/turkeyzhou/archive/2008/04/18/2305886.aspx">新一篇: Java语言的细节
</A> | <A
href="http://blog.csdn.net/turkeyzhou/archive/2008/04/17/2302438.aspx">旧一篇: Eclipse中CVS的使用</A></H3></SPAN>
<SCRIPT>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</SCRIPT>
<A
href="http://blog.csdn.net/java2000_net/archive/2008/04/16/2297409.aspx">使用Rome实现网站RSS发布的简单步骤</A>
<SCRIPT
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/count.htm"
type=text/javascript></SCRIPT>
<IMG title=文章指数:0 alt=文章指数:0
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/star_0.gif"
border=0> <IMG
title="CSDN Blog推出文章指数概念,文章指数是对Blog文章综合评分后推算出的,综合评分项分别是该文章的点击量,回复次数,被网摘收录数量,文章长度和文章类型;满分100,每月更新一次。"
alt="CSDN Blog推出文章指数概念,文章指数是对Blog文章综合评分后推算出的,综合评分项分别是该文章的点击量,回复次数,被网摘收录数量,文章长度和文章类型;满分100,每月更新一次。"
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/ask.gif"
border=0>
<DIV class=postText>
<DIV
style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: rgb(230,230,230) 0% 50%; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 95%; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial">
<DIV><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/None.gif"
align=top><SPAN style="COLOR: rgb(0,0,0)"><%</SPAN><SPAN
style="COLOR: rgb(0,0,0)">@ page language</SPAN><SPAN
style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">java</SPAN><SPAN
style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)"> contentType</SPAN><SPAN
style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">text/html; charset=UTF-8</SPAN><SPAN
style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)"> pageEncoding</SPAN><SPAN
style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">UTF-8</SPAN><SPAN
style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">%></SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG
alt="" src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/None.gif"
align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)"><%</SPAN><SPAN
style="COLOR: rgb(0,0,0)">@include file</SPAN><SPAN
style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">package.inc.jsp</SPAN><SPAN
style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">%></SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG
alt="" src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/None.gif"
align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)"><%</SPAN><SPAN
style="COLOR: rgb(0,0,0)">@page </SPAN><SPAN
style="COLOR: rgb(0,0,255)">import</SPAN><SPAN
style="COLOR: rgb(0,0,0)">=</SPAN><SPAN style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">org.jdom.*,com.sun.syndication.feed.synd.*,com.sun.syndication.io.SyndFeedOutput</SPAN><SPAN
style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">%></SPAN><SPAN style="COLOR: rgb(0,0,0)"><BR><IMG
alt="" src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/None.gif"
align=top></SPAN><SPAN style="COLOR: rgb(0,0,0)"><%</SPAN><SPAN
style="COLOR: rgb(0,0,0)"><BR><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/None.gif"
align=top> </SPAN><SPAN style="COLOR: rgb(0,0,255)">int</SPAN><SPAN
style="COLOR: rgb(0,0,0)"> maxLength </SPAN><SPAN
style="COLOR: rgb(0,0,0)">=</SPAN><SPAN
style="COLOR: rgb(0,0,0)"> </SPAN><SPAN
style="COLOR: rgb(0,0,0)">500</SPAN><SPAN style="COLOR: rgb(0,0,0)">;<BR><IMG
alt="" src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/None.gif"
align=top> out.clearBuffer();<BR><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/None.gif"
align=top> SyndFeed feed </SPAN><SPAN
style="COLOR: rgb(0,0,0)">=</SPAN><SPAN
style="COLOR: rgb(0,0,0)"> </SPAN><SPAN
style="COLOR: rgb(0,0,255)">new</SPAN><SPAN
style="COLOR: rgb(0,0,0)"> SyndFeedImpl();<BR><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/None.gif"
align=top> feed.setFeedType(</SPAN><SPAN
style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">rss_2.0</SPAN><SPAN
style="COLOR: rgb(0,0,0)">"</SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG
alt="" src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/None.gif"
align=top> feed.setTitle(</SPAN><SPAN
style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">Java世纪网,Enjoy Java, Enjoy Everyday</SPAN><SPAN
style="COLOR: rgb(0,0,0)">"</SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG
alt="" src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/None.gif"
align=top> feed.setLink(</SPAN><SPAN
style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">http://www.java2000.net</SPAN><SPAN
style="COLOR: rgb(0,0,0)">"</SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG
alt="" src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/None.gif"
align=top> feed.setDescription(</SPAN><SPAN
style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">Java世纪网的最新的50个帖子列表</SPAN><SPAN
style="COLOR: rgb(0,0,0)">"</SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG
alt="" src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/None.gif"
align=top> feed.setEncoding(</SPAN><SPAN
style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">UTF-8</SPAN><SPAN
style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">); <BR><IMG id=_514_1207_Open_Image
onclick="this.style.display='none'; document.getElementById('_514_1207_Open_Text').style.display='none'; document.getElementById('_514_1207_Closed_Image').style.display='inline'; document.getElementById('_514_1207_Closed_Text').style.display='inline';"
alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/ExpandedBlockStart.gif"
align=top><IMG id=_514_1207_Closed_Image style="DISPLAY: none"
onclick="this.style.display='none'; document.getElementById('_514_1207_Closed_Text').style.display='none'; document.getElementById('_514_1207_Open_Image').style.display='inline'; document.getElementById('_514_1207_Open_Text').style.display='inline';"
alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/ContractedBlock.gif"
align=top> </SPAN><SPAN id=_514_1207_Closed_Text
style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">/**/</SPAN><SPAN
id=_514_1207_Open_Text><SPAN style="COLOR: rgb(0,128,0)">/*</SPAN><SPAN
style="COLOR: rgb(0,128,0)"> <BR><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/InBlock.gif"
align=top> Document doc = feed.outputJDom(feed.createWireFeed());<BR><IMG
alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/InBlock.gif"
align=top> //create the XSL processing instruction<BR><IMG
alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/InBlock.gif"
align=top> Map xsl = new HashMap();<BR><IMG
alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/InBlock.gif"
align=top> xsl.put("href", "</SPAN><SPAN
style="COLOR: rgb(0,128,0); TEXT-DECORATION: underline">http://feeds.feedburner.com/</SPAN><SPAN
style="COLOR: rgb(0,128,0)">~d/styles/rss2full.xsl");<BR><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/InBlock.gif"
align=top> xsl.put("type", "text/xsl");<BR><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/InBlock.gif"
align=top> xsl.put("media", "screen");<BR><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/InBlock.gif"
align=top> ProcessingInstruction pXsl = new ProcessingInstruction("xml-stylesheet", xsl);<BR><IMG
alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/InBlock.gif"
align=top> doc.addContent(0, pXsl);<BR><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/InBlock.gif"
align=top> //create the CSS processing instruction<BR><IMG
alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/InBlock.gif"
align=top> Map css = new HashMap();<BR><IMG
alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/InBlock.gif"
align=top> css.put("href", "</SPAN><SPAN
style="COLOR: rgb(0,128,0); TEXT-DECORATION: underline">http://feeds.feedburner.com/</SPAN><SPAN
style="COLOR: rgb(0,128,0)">~d/styles/itemcontent.css");<BR><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/InBlock.gif"
align=top> css.put("type", "text/css");<BR><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/InBlock.gif"
align=top> css.put("media", "screen");<BR><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/InBlock.gif"
align=top> ProcessingInstruction pCss = new ProcessingInstruction("xml-stylesheet", css); <BR><IMG
alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/InBlock.gif"
align=top> doc.addContent(1, pCss); <BR><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/ExpandedBlockEnd.gif"
align=top> </SPAN><SPAN
style="COLOR: rgb(0,128,0)">*/</SPAN></SPAN><SPAN
style="COLOR: rgb(0,0,0)"><BR><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/None.gif"
align=top> <BR><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/None.gif"
align=top> List</SPAN><SPAN
style="COLOR: rgb(0,0,0)"><</SPAN><SPAN
style="COLOR: rgb(0,0,0)">SyndEntry</SPAN><SPAN
style="COLOR: rgb(0,0,0)">></SPAN><SPAN
style="COLOR: rgb(0,0,0)"> entries </SPAN><SPAN
style="COLOR: rgb(0,0,0)">=</SPAN><SPAN
style="COLOR: rgb(0,0,0)"> </SPAN><SPAN
style="COLOR: rgb(0,0,255)">new</SPAN><SPAN
style="COLOR: rgb(0,0,0)"> ArrayList</SPAN><SPAN
style="COLOR: rgb(0,0,0)"><</SPAN><SPAN
style="COLOR: rgb(0,0,0)">SyndEntry</SPAN><SPAN
style="COLOR: rgb(0,0,0)">></SPAN><SPAN style="COLOR: rgb(0,0,0)">();<BR><IMG
alt="" src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/None.gif"
align=top> SyndEntry entry;<BR><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/None.gif"
align=top> SyndContent description;<BR><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/None.gif"
align=top> PostService ps </SPAN><SPAN
style="COLOR: rgb(0,0,0)">=</SPAN><SPAN
style="COLOR: rgb(0,0,0)"> (PostService) Factory.getBean(</SPAN><SPAN
style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">PostService</SPAN><SPAN
style="COLOR: rgb(0,0,0)">"</SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG
alt="" src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/None.gif"
align=top> Collection</SPAN><SPAN
style="COLOR: rgb(0,0,0)"><</SPAN><SPAN
style="COLOR: rgb(0,0,0)">Post</SPAN><SPAN
style="COLOR: rgb(0,0,0)">></SPAN><SPAN
style="COLOR: rgb(0,0,0)"> pList </SPAN><SPAN
style="COLOR: rgb(0,0,0)">=</SPAN><SPAN
style="COLOR: rgb(0,0,0)"> ps.findAll(</SPAN><SPAN
style="COLOR: rgb(0,0,0)">-</SPAN><SPAN style="COLOR: rgb(0,0,0)">1</SPAN><SPAN
style="COLOR: rgb(0,0,0)">, </SPAN><SPAN
style="COLOR: rgb(0,0,0)">0</SPAN><SPAN
style="COLOR: rgb(0,0,0)">, </SPAN><SPAN
style="COLOR: rgb(0,0,0)">50</SPAN><SPAN style="COLOR: rgb(0,0,0)">);<BR><IMG
id=_1452_2111_Open_Image
onclick="this.style.display='none'; document.getElementById('_1452_2111_Open_Text').style.display='none'; document.getElementById('_1452_2111_Closed_Image').style.display='inline'; document.getElementById('_1452_2111_Closed_Text').style.display='inline';"
alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/ExpandedBlockStart.gif"
align=top><IMG id=_1452_2111_Closed_Image style="DISPLAY: none"
onclick="this.style.display='none'; document.getElementById('_1452_2111_Closed_Text').style.display='none'; document.getElementById('_1452_2111_Open_Image').style.display='inline'; document.getElementById('_1452_2111_Open_Text').style.display='inline';"
alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/ContractedBlock.gif"
align=top> </SPAN><SPAN style="COLOR: rgb(0,0,255)">for</SPAN><SPAN
style="COLOR: rgb(0,0,0)"> (Post p : pList) </SPAN><SPAN
id=_1452_2111_Closed_Text
style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; DISPLAY: none; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-BOTTOM: rgb(128,128,128) 1px solid; BACKGROUND-COLOR: rgb(255,255,255)">...</SPAN><SPAN
id=_1452_2111_Open_Text><SPAN style="COLOR: rgb(0,0,0)">{<BR><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/InBlock.gif"
align=top> entry </SPAN><SPAN
style="COLOR: rgb(0,0,0)">=</SPAN><SPAN
style="COLOR: rgb(0,0,0)"> </SPAN><SPAN
style="COLOR: rgb(0,0,255)">new</SPAN><SPAN
style="COLOR: rgb(0,0,0)"> SyndEntryImpl();<BR><IMG alt=""
src="使用Rome实现网站RSS发布的简单步骤 - 看!corey,那天比你高多拉~~~ - CSDNBlog.files/InBlock.gif"
align=top> entry.setTitle(p.getUser().getUsername()</SPAN><SPAN
style="COLOR: rgb(0,0,0)">+</SPAN><SPAN style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">(</SPAN><SPAN style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">+</SPAN><SPAN
style="COLOR: rgb(0,0,0)">p.getUser().getNickName()</SPAN><SPAN
style="COLOR: rgb(0,0,0)">+</SPAN><SPAN style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">)</SPAN><SPAN style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">+</SPAN><SPAN
style="COLOR: rgb(0,0,0)">(p.getIdParent()</SPAN><SPAN
style="COLOR: rgb(0,0,0)">==</SPAN><SPAN style="COLOR: rgb(0,0,0)">0</SPAN><SPAN
style="COLOR: rgb(0,0,0)">?</SPAN><SPAN style="COLOR: rgb(0,0,0)">"</SPAN><SPAN
style="COLOR: rgb(0,0,0)">发表了</SPAN><SPAN
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -