Commit 40d4ab80 authored by shake's avatar shake
Browse files

Fix cast error with browse and report jsps. Changed them to get the state as a...

Fix cast error with browse and report jsps. Changed them to get the state as a String instead of as a char.

git-svn-id: https://subversion.umiacs.umd.edu/ace/trunk@203 f1b3a171-7291-4a19-a512-95ad0ad9394a
parent ff061d54
......@@ -224,6 +224,10 @@ public class MonitoredItem implements Serializable, Comparable {
return state;
}
public String getStateAsString() {
return String.valueOf(state);
}
public void setState( char state ) {
this.state = state;
}
......
......@@ -123,25 +123,25 @@ on Libraries node in Projects view can be used to add the JSTL 1.1 library.
<c:if test="${!selectedFile.root.directory}"><tr><td>Size</td><td><m:FileSize value="${selectedFile.root.size}" /></td></tr></c:if>
<tr><td>State</td><td>
<c:choose>
<c:when test="${selectedFile.root.state eq 'A'}">
<c:when test="${selectedFile.root.stateAsString eq 'A'}">
<img src="images/file-ok.jpg"/>
</c:when>
<c:when test="${selectedFile.root.state eq 'C'}">
<c:when test="${selectedFile.root.stateAsString eq 'C'}">
Corrupt
</c:when>
<c:when test="${selectedFile.root.state eq 'T'}">
<c:when test="${selectedFile.root.stateAsString eq 'T'}">
Token Missing
</c:when>
<c:when test="${selectedFile.root.state eq 'M'}">
<c:when test="${selectedFile.root.stateAsString eq 'M'}">
File Missing
</c:when>
<c:when test="${selectedFile.root.state eq 'R'}">
<c:when test="${selectedFile.root.stateAsString eq 'R'}">
File Registered
</c:when>
<c:when test="${selectedFile.root.state eq 'P'}">
<c:when test="${selectedFile.root.stateAsString eq 'P'}">
Remote File Missing
</c:when>
<c:when test="${selectedFile.root.state eq 'D'}">
<c:when test="${selectedFile.root.stateAsString eq 'D'}">
Remote File Corrupt
</c:when>
</c:choose>
......
......@@ -112,25 +112,25 @@ on Libraries node in Projects view can be used to add the JSTL 1.1 library.
</td>
<td>
<c:choose>
<c:when test="${item.state eq 'C'}">
<c:when test="${item.stateAsString eq 'C'}">
Corrupt
</c:when>
<c:when test="${item.state eq 'T'}">
<c:when test="${item.stateAsString eq 'T'}">
Token Missing
</c:when>
<c:when test="${item.state eq 'M'}">
<c:when test="${item.stateAsString eq 'M'}">
File Missing
</c:when>
<c:when test="${item.state eq 'I'}">
<c:when test="${item.stateAsString eq 'I'}">
Token Corrupt
</c:when>
<c:when test="${item.state eq 'P'}">
<c:when test="${item.stateAsString eq 'P'}">
Remote Missing
</c:when>
<c:when test="${item.state eq 'D'}">
<c:when test="${item.stateAsString eq 'D'}">
Remote Corrupt
</c:when>
<c:when test="${item.state eq 'R'}">
<c:when test="${item.stateAsString eq 'R'}">
File Registered
</c:when>
<c:otherwise>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment