<%@ page language="java" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> <%@ taglib uri="/tags/struts-tiles" prefix="tiles" %> <tiles:useAttribute name="resourceCollection"/> <tiles:useAttribute name="actionId" classname="java.lang.String"/> <tiles:useAttribute name="actionMessageKey"/> <table class="itemList"> <tr> <th scope="col"><bean:message key="resource.table.heading.title"/></th> <th scope="col"><bean:message key="resource.table.heading.author"/></th> <th scope="col"><bean:message key="resource.table.heading.date"/></th> <th scope="col"><bean:message key="resource.table.heading.type"/></th> <th scope="col"><bean:message key="resource.table.heading.license"/></th> <th scope="col"></th> </tr> <logic:notEmpty name="resourceCollection"> <logic:iterate id="resource" indexId="resourceIndex" name="resourceCollection" type="uk.ac.ox.oucs.ask.client.model.beans.UIResource" > <tr> <td><bean:write name="resource" property="title"/></td> <td><bean:write name="resource" property="author"/></td> <td><bean:write name="resource" property="created"/></td> <td> <html:image disabled="true" alt="<%= resource.getMimeType() %>" src="<%= resource.getMimeTypeImageURL() %>" /> <bean:message name="resource" property="resourceTypeCode"/> </td> <td> <logic:empty name="resource" property="licenseURL"><html:image disabled="true" alt="<%= resource.getLicenseDescription() %>" src="<%= resource.getLicenseImageURL() %>" /></logic:empty> <logic:notEmpty name="resource" property="licenseURL"><html:link href="<%= resource.getLicenseURL() %>"><html:img alt="<%= resource.getLicenseDescription() %>" src="<%= resource.getLicenseImageURL() %>" /></html:link></logic:notEmpty> </td> <td><html:link href="<%="javascript:setSelectedAndSubmit('" + actionId + "','" + resource.getResourceDescriptor().getCodedString()+"')"%>"><bean:message name="actionMessageKey"/></html:link> </tr> </logic:iterate> </logic:notEmpty> </table>