|
What this is
Other links
The source code<?xml version="1.0" encoding="utf-8" ?> <%@ page contentType="text/xml;charset=utf-8" %> <%@ page errorPage="fatalerror.jsp"%> <%@ page import="java.util.*" %> <%@ page import="java.sql.*" %> <%@ page import="net.myvietnam.mvncore.util.*" %> <%@ page import="com.mvnforum.db.*" %> <%@ page import="com.mvnforum.MyUtil" %> <%@ page import="com.mvnforum.user.UserModuleConfig" %> <%@ page import="com.mvnforum.MVNForumConfig" %> <%@ page import="com.mvnforum.MVNForumInfo" %> <%@ page import="com.mvnforum.MVNForumResourceBundle" %> <% request.setAttribute("contentType", "text/xml;charset=utf-8");%> <%@ include file="inc_common.jsp"%> <fmt:bundle basename="mvnForum_i18n"> <% response.setContentType("text/xml;charset=utf-8");%> <% Collection threadBeans = (Collection) request.getAttribute("ThreadBeans"); int forumID = ((Integer)request.getAttribute("ForumID")).intValue(); String prefix = ParamUtil.getServerPath() + request.getContextPath() + UserModuleConfig.getUrlPattern(); String logoUrl = ParamUtil.getServerPath() + request.getContextPath() + "/mvnplugin/mvnforum/images/logo.gif"; Timestamp now = DateUtil.getCurrentGMTTimestamp(); String modified = DateUtil.getDateISO8601(now); String link = prefix + "/index"; String title = MVNForumResourceBundle.getString(onlineUser.getLocale(), "mvnforum.common.forum.title_name"); String tagLine; String copyRight = "Copyright by this site owner"; String authorName = title + " Editor"; String authorEmail = ""; //please consider spam when putting email here //String id = ""; String generator = "mvnForum Feed Generator " + MVNForumInfo.getProductVersion(); if (forumID > 0) { // Forum specific ATOM ForumCache forumCache = ForumCache.getInstance(); String forumName = forumCache.getBean(forumID).getForumName(); title = title + " (Forum: " + forumName + ")"; tagLine = "ATOM Feed of " + title; } else { // global ATOM title = title + " (Global ATOM)"; tagLine = "ATOM Feed of " + title; } %> <feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="en"> <title><%=title%> <link rel="alternate" type="text/html" href="<%=link%>"/> <modified><%=modified%> <tagline> <%-- Description --%><%=tagLine%> <copyright><%=copyRight%> <author> <name><%=authorName%> <email> </author> <id><%=prefix%>/rsssummary <generator><%=generator%> <%for (Iterator iterator = threadBeans.iterator(); iterator.hasNext(); ) { ThreadBean threadBean = (ThreadBean)iterator.next(); %> <entry> <title><%=MyUtil.filter(threadBean.getThreadTopic(), false/*html*/, false/*emotion*/, false/*mvnCode*/, false/*newLine*/, false/*URL*/)%> <link rel="alternate" type="text/html" href="<%=prefix%>/viewthread?thread=<%=threadBean.getThreadID()%>"/> <id><%=prefix%>/viewthread?thread=<%=threadBean.getThreadID()%> <issued><%=DateUtil.getDateISO8601(threadBean.getThreadCreationDate())%> <modified><%=DateUtil.getDateISO8601(threadBean.getThreadLastPostDate())%> <content><%=MyUtil.filter(StringUtil.getShorterString(threadBean.getThreadBody(), MVNForumConfig.getMaxCharsInRss()), false/*html*/, false/*emotion*/, false/*mvnCode*/, false/*newLine*/, false/*URL*/)%> <author> |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.