📄 rss2.jsp
字号:
<%@ include file="../include/includexml.jsp" %>
<%
String context = "http://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath();
java.util.Date date = new java.util.Date();
%>
<?xml version="1.0" encoding="UTF-8"?>
<rss>
<channel>
<title>Jaoso</title>
<link><%=context%></link>
<description>Jaoso group</description>
<language>zh-cn</language>
<managingEditor>xiongjie@csdn.net</managingEditor>
<webMaster>happysuasalito@hotmail.com</webMaster>
<pubDate><%=date%></pubDate>
<lastBuildDate><%=date%></lastBuildDate>
<category></category>
<image>
<url><%=context%>/pages/images/spring.gif</url>
<title><%=context%></title>
<link><%=context%></link>
<description>welcome to Jaoso!</description>
</image>
<logic:iterate id="article" name="articles">
<item>
<title><![CDATA[ <bean:write name="article" property="artTitle"/> ]]></title>
<link><%=context%>/viewArticle.do?method=viewArticle&id=<bean:write name="article" property="artId"/></link>
<description> <bean:write name="article" property="artContent"/>
</description>
<author><bean:write name="article" property="author.name"/></author>
</item>
</logic:iterate>
</channel>
</rss>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -