Brian-
The problem is that you are receiving data based upon event information
triggered outside of the webapp environment so I dont see
Struts as being able to handle those types of external events..maybe JSF is
a better way to handle this but thats a different situation altogether-
I did find a J2EE Solution whic implements display of RSS Feed but using
Apache cocoon to transform transmitted XML Data from the server to JSP
clients take a look at
http://www.xml.com/lpt/a/2003/04/23/cocoon-magazine.html
I hope this helps,
Martin-
----- Original Message -----
From: "Brian McGovern" <[EMAIL PROTECTED]>
To: "Martin Gainty" <[EMAIL PROTECTED]>
Cc: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Tuesday, May 24, 2005 3:45 PM
Subject: RE: JSTL Rss Reading
I'd like to avoid js if possible. Client can turn that off.
-Any other ideas?
-----Original Message-----
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 3:38 PM
To: Brian McGovern
Cc: Struts Users Mailing List
Subject: Re: JSTL Rss Reading
Brian
did you look at frank zammetti's xhrstruts (Browser independent RSS feed
implementation using JavaScript) ?
http://www.omnytex.com/articles/xhrstruts/
Martin-
----- Original Message -----
From: "Brian McGovern" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Tuesday, May 24, 2005 2:12 PM
Subject: JSTL Rss Reading
Hi,
I'm having a rough time with the issue of reading in rss feeds in my
presentation layer. My situation calls for the same feed to be shown on
every screen of a certain section. Problem is, it loads very slow. There
are a million ways to approach this and Im hoping to keep my logic on the
presenation layer in a tag based fashion. My last resort is to create a
scheduled job that creates a file to be inlcuded every 10 or 20 minutes.
Any ideas appreciated.
<c:import var="rssFeed" url="http://rss.prnewswire.com/"/>
<x:parse var="rss" doc="${rssFeed}" />
<table width="200" cellpadding="5" cellspacing="0" bgcolor="#EEEEEE"
class="BorderOn">
<th height="23" bgcolor="#CCCCCC" align="left"> <span
class="infoTextHeader">Recent Headlines</span></th>
<x:forEach begin="0" end="5" select="$rss//*[name()='item']"
varStatus="indexCounter">
<tr>
<td align=left valign=top><a href="<x:out
select="./*[name()='link']"/>" class=small><x:out
select="./*[name()='title']" escapeXml="false"/></a></td>
</tr>
</x:forEach>
</table>
Thanks
B
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]