Announcement

Collapse
No announcement yet.

JSP Custom Tags und RSS

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • JSP Custom Tags und RSS

    Hallo,

    ich will ein RSS Feed mit JSP und prädefinieten Custom Tags erzeugen.

    Mein Code produziert valid RSS, aber wenn ich das URL (http://localhost/feed.jsp - siehe unten) mit Aggregator (mehrere ausprobiert) hinfüge, es funktioniert nicht. Wenn ich im JSP die Custom Tags mit dem plain Text (z.B. statt <language:message key="status.last" /> nur "Somestatus") ersetze, dann ist es ok.

    Ideen? Danke.

    Code:
    <?xml version="1.0" encoding="UTF-8" ?>  
    <%@ page contentType="text/xml" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="bean" uri="/WEB-INF/struts-bean.tld" %>
    <%@ taglib prefix="language" uri="/WEB-INF/language.tld" %>
    <rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
      <channel>
        <title>Status</title>
        <link>http://link</link>
        <description>status</description>
        <item>
          <title><language:message key="status.last" /></title>
          <description><c:out value="${last_date}"/></description>
          <pubDate><%= new java.util.Date() %></pubDate>
        </item>
      </channel>
    </rss>
Working...
X