~ubuntu-branches/ubuntu/trusty/libstruts1.2-java/trusty-proposed

« back to all changes in this revision

Viewing changes to web/tiles-documentation/examples/tiles/rssChannels.jsp

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2004-11-19 15:35:25 UTC
  • Revision ID: james.westby@ubuntu.com-20041119153525-mdu08a76z4zo67xt
Tags: upstream-1.2.4
ImportĀ upstreamĀ versionĀ 1.2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<%--
 
2
/**
 
3
 * Summarize channels as unadorned HTML.
 
4
 *
 
5
 * @param CHANNELS List of channels
 
6
 * @version $Revision: 1.2 $ $Date: 2004/01/19 04:41:57 $
 
7
 */
 
8
--%>
 
9
 
 
10
<%@ page language="java" %>
 
11
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
 
12
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
 
13
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
 
14
 
 
15
<div align="center"><font size="+1"><b>
 
16
 
 
17
<tiles:importAttribute name="CHANNELS" scope="page"/>
 
18
 
 
19
<logic:iterate name="CHANNELS" id="CHANNEL" >
 
20
<TABLE border="0" cellspacing="0" cellpadding="4" width="100%" align="center" >
 
21
<TR>
 
22
<TD class="spanhd" ><logic:present name="CHANNEL" property="image">
 
23
  <a href="<bean:write name="CHANNEL" property="link"/>">
 
24
    <img src="<bean:write name="CHANNEL" property="image.URL"/>"></logic:present></a>
 
25
</TD>
 
26
<TD class="spanhd" width="100%"><bean:write name="CHANNEL" property="title"/> <a href="<bean:write name="CHANNEL" property="link"/>">[home]</a></TD>
 
27
</TR>
 
28
<TD class="yellow" colspan="2"><bean:write name="CHANNEL" property="description"/></TD>
 
29
</TR>
 
30
 
 
31
<TR>
 
32
<TD class="datagrey" colspan="2">
 
33
<logic:iterate name="CHANNEL" property="items" id="ITEM">
 
34
<br><b><bean:write name="ITEM" property="title"/></b>
 
35
<br><bean:write name="ITEM" property="description"/>
 
36
<br>&nbsp;&nbsp;[ <a href="<bean:write name="ITEM" property="link"/>">more</a> ]
 
37
<br>
 
38
</logic:iterate>
 
39
</TD>
 
40
</TR>
 
41
</TABLE>
 
42
<br>
 
43
</logic:iterate>
 
44
 
 
45
</b></font></div>