<?xml version="1.0"?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jstl/ea/core" xmlns:x="http://java.sun.com/jstl/ea/xml" version="1.2"> <jsp:directive.page import="java.util.*,com.perforce.api.*,org.apache.crimson.tree.*"/> <jsp:directive.include file="session.jsp"/> <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>Browse:</H1> <PRE> <!-- <c:import url="packages.xml" var="xml"/> <x:parse source="$xml" var="packages"/> <x:set select="string($packages/packages/package[@id=$pkg]/@path)" var="pkgpath"/> --> <jsp:scriptlet> String path = request.getParameter("path"); if (null == path) path = "//"; if (!path.endsWith("/")) path += "/"; out.print(Utils.formatDepotPath(path, "<A href=\"browse.jsp?path={0}\">{1}</A>", null, null, true)); out.print("<BR/>"); DirEntry dir = new DirEntry(env, path); String[] dirs = dir.getDirNames(); int i; out.print("<TABLE>"); for (i = 0; i < dirs.length; i++) { out.print("<TR><TD/>"); out.print("<TD><A href=\"browse.jsp?path="+path+dirs[i]+"\">"+dirs[i]+"</A></TD></TR>"); } FileEntry[] files = dir.getFiles(); if (0 < files.length) { </jsp:scriptlet> <TR><TH/><TH>File</TH><TH>Type</TH><TH>Rev</TH><TH>Modtime</TH></TR> <jsp:scriptlet> } for (i = 0; i < files.length; i++) { out.print("<TR><TD/>"); out.print("<TD><A href=\"file.jsp?path="+files[i].getDepotPath()+"\">"+files[i].getName()+"</A></TD>"); out.print("<TD>"+files[i].getHeadType()+"</TD>"); out.print("<TD>"+files[i].getHeadRev()+"</TD>"); out.print("<TD>"+files[i].getHeadTimeString()+"</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 | |
---|---|---|---|---|---|
#6 | 2206 | David Markley |
Removed all use of the common tag library and any specific inclusion of the crimson API. |
||
#5 | 2070 | David Markley | Updated to work with Tomcat 4.0.4 | ||
#4 | 1843 | David Markley | Added missing images and better ties to itself. | ||
#3 | 1842 | David Markley | Updated pages to include titles and added view and diff pages. | ||
#2 | 1836 | David Markley | Added file information and improved item listings. | ||
#1 | 1824 | David Markley | Added initial files for p4jsp. |