<?xml version="1.0"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2">
<jsp:directive.page import="java.net.*,java.util.*,com.perforce.api.*" contentType="text/html;charset=ISO-8859-1"/>
<jsp:directive.include file="session.jsp"/>
<jsp:scriptlet>title="P4JSP FileLog";</jsp:scriptlet>
<jsp:text><HTML><HEAD>
<jsp:directive.include file="head.jsp"/>
</HEAD>
<BODY bgcolor="#FFFFFF" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0">
<TABLE width="780" cellspacing="0" cellpadding="0" border="0">
<jsp:directive.include file="navbar.jsp"/>
<TR><TD><TABLE width="100%" cellspacing="0" cellpadding="0" border="0">
<TR><TD width="21"><IMG src="images/s.gif" width="21" rowspan="10"/></TD><TD width="100%">
<H1>File:</H1>
<PRE>
<jsp:scriptlet>
String path = request.getParameter("path");
if (null == path) {
response.sendRedirect(response.encodeRedirectURL("index.html"));
return;
}
out.print(Utils.formatDepotPath(path, "<A href=\"browse.jsp?path={0}\">{1}</A>", "<A href=\"file.jsp?path={0}\">{1}</A>", null, true));
out.print("<BR/>");
Vector v = FileEntry.getFileLog(env, path);
out.print("<H2>History</H2>");
out.print("<TABLE>");
</jsp:scriptlet>
<TR><TH>Rev</TH><TH>Change</TH><TH>Mod Time</TH><TH>Action</TH><TH>Type</TH><TH>Short Description</TH></TR>
<jsp:scriptlet>
Enumeration en = v.elements();
while(en.hasMoreElements()) {
FileEntry fent = (FileEntry)en.nextElement();
fent.setTimeFormat("MM/dd/yy");
out.print("<TR>");
out.print("<TD><A href=\"view.jsp?path="+URLEncoder.encode(fent.getDepotPath()+"#"+fent.getHeadRev())+"\">"+fent.getHeadRev()+"</A></TD>");
out.print("<TD><A href=\"change.jsp?num="+fent.getHeadChange()+"\">"+fent.getHeadChange()+"</A></TD>");
out.print("<TD>"+fent.getHeadTimeString()+"</TD>");
if (1 < fent.getHeadRev()) {
out.print("<TD><A href=\"diff.jsp?path="+URLEncoder.encode(fent.getDepotPath())+"&r1="+(fent.getHeadRev()-1)+"&r2="+fent.getHeadRev()+"\">"+fent.getHeadAction()+"</A></TD>");
} else {
out.print("<TD>"+fent.getHeadAction()+"</TD>");
}
out.print("<TD>"+fent.getHeadType()+"</TD>");
out.print("<TD>"+fent.getDescription()+"</TD>");
out.print("</TR>");
}
out.print("</TABLE>");
</jsp:scriptlet>
</PRE>
</TD></TR>
</TABLE></TD></TR>
</TABLE></BODY></HTML></jsp:text>
</jsp:root>
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #4 | 2206 | David Markley |
Removed all use of the common tag library and any specific inclusion of the crimson API. |
||
| #3 | 2070 | David Markley | Updated to work with Tomcat 4.0.4 | ||
| #2 | 1842 | David Markley | Updated pages to include titles and added view and diff pages. | ||
| #1 | 1836 | David Markley | Added file information and improved item listings. |