Show ResultsBrowserView.jsp syntax highlighted
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
<%@ page import="java.util.Iterator, fi.hip.gb.portlet.*, fi.hip.gb.portlet.beans.*, fi.hip.gb.portlet.results.Result" %>
<portlet:defineObjects/>
<%
ResultsBrowserViewBean viewBean = (ResultsBrowserViewBean)request.getAttribute(ResultsBrowserPortlet.VIEW_BEAN);
%>
<form action="<portlet:actionURL/>" method="POST">
<table>
<tr class="portlet-section-header">
<th></th>
<th>Name</th>
<th>State</th>
</tr>
<%
int i = 0;
Iterator resultsIt = viewBean.getResults().iterator();
while(resultsIt.hasNext()) {
Result result = (Result)resultsIt.next();%>
<tr class="<%=(i%2==0?"portlet-section-body":"portlet-section-alternate")%>">
<td><input type="checkbox" name="checkedResults" value="<%=result.getJobID().toString()%>"/></td>
<td><a href="<portlet:renderURL>
<portlet:param name="jobID" value="<%=result.getJobID().toString()%>"/>
</portlet:renderURL>"><%=result.getJobName()%></a></td>
<td><%=result.getState()%></td>
</tr>
<% i++;
}%>
<tr>
<td></td>
<td><input class="portlet-form-button" type="submit" name="remove" value="Remove"/></td>
</tr>
</table>
<br/>
<a href="<portlet:renderURL/>">Refresh</a>
</form>
See more files for this project here