rss2.jsp
来自「Jaoso新闻文章发布系统 0.9.1final 程序架构: Struts」· JSP 代码 · 共 38 行
JSP
38 行
<%@ 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 + =
减小字号Ctrl + -
显示快捷键?