Show JobSubmissionView.jsp syntax highlighted
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
<%@ page import="java.util.*, fi.hip.gb.portlet.*, fi.hip.gb.portlet.beans.*, fi.hip.gb.portlet.services.Service" %>
<portlet:defineObjects/>
<%
JobSubmissionViewBean viewBean = (JobSubmissionViewBean)request.getAttribute(JobSubmissionPortlet.VIEW_BEAN);
if(viewBean.getStatusMessage() != null)
out.println(viewBean.getStatusMessage());
%>
<form action="<portlet:actionURL/>" method="POST">
<table>
<tr class="portlet-section-header">
<th>Service</th>
<th>Version</th>
<th>Description</th>
</tr>
<%
int i = 0;
List srvs = viewBean.getServices();
if(srvs != null) {
Iterator servicesIt = srvs.iterator();
while(servicesIt.hasNext()) {
Service service = (Service)servicesIt.next();%>
<tr class="<%=(i%2==0?"portlet-section-body":"portlet-section-alternate")%>">
<td><a href="<portlet:actionURL>
<portlet:param name="serviceIndex" value="<%=""+i%>"/>
</portlet:actionURL>"><%=service.getName()%></a></td>
<td align="right"><%=service.getVersion()%></td>
<td><%=service.getDescription()%></td>
</tr>
<% i++;
}
} %>
</table>
</form>
<form>
<%
String shellURL;
shellURL = request.getScheme() + "://" + request.getServerName() + ":8085/remote/jconsole.html";
%>
<input class="portlet-form-button" type="button" value="Shell Screen"
onClick="window.open('<%=shellURL%>',
'BeanShell Screen',
'width=515,height=355,resizable=no,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no')"/>
</form>
See more files for this project here