<?xml version="1.0"?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"> <jsp:directive.page import="java.util.*,com.perforce.api.*,java.text.*,java.net.*" contentType="text/html;charset=ISO-8859-1"/> <jsp:directive.include file="session.jsp"/> <jsp:scriptlet>title="P4JSP Change View";</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%"> <jsp:scriptlet> String num = request.getParameter("num"); if (null == num) { response.sendRedirect(response.encodeRedirectURL("changes.jsp")); return; } Change chng; try { chng = Change.getChange(env, num, true); } catch (Exception ex) { out.print("<PRE>Exception:\n"+ex+"\n\n"+env+"</PRE>"); return; } out.println("<H1>Change "+chng.getNumber()+":</H1>"); </jsp:scriptlet> <TABLE cellspacing="4" cellpadding="3"> <jsp:scriptlet> out.print("<TR><TD align=\"right\" valign=\"top\" >Submitter:</TD><TD>"+chng.getUser().getId()+"</TD>"); out.print("<TR><TD align=\"right\" valign=\"top\" >Status:</TD><TD>"+(Change.PENDING==chng.getStatus()?"pending":"submitted")+"</TD>"); out.print("<TR><TD align=\"right\" valign=\"top\" >Mod Time:</TD><TD>"+chng.getModtimeString()+"</TD>"); out.print("<TR><TD align=\"right\" valign=\"top\" >Description:</TD><TD><PRE>"+chng.getShortDescription(true)+"</PRE></TD>"); out.print("<TR><TD nowrap=\"t\" align=\"right\" valign=\"top\" >Affected Files:</TD><TD>"); Vector fents = chng.getFileEntries(); FileEntry fent; Enumeration en = fents.elements(); while (en.hasMoreElements()) { fent = (FileEntry)en.nextElement(); out.print(Utils.formatDepotPath(fent.getDepotPath()+"#"+fent.getHeadRev(), "<A href=\"browse.jsp?path={0}\">{1}</A>", "<A href=\"file.jsp?path={0}\">{1}</A>", "<A href=\"view.jsp?path={0}\">{1}</A>", true)); out.print(" "); if (1 < fent.getHeadRev()) { out.print("<A href=\"diff.jsp?path="+URLEncoder.encode(fent.getDepotPath())+"&r1="+(fent.getHeadRev()-1)+"&r2="+fent.getHeadRev()+"\">"+fent.getHeadAction()+"</A>"); } else { out.print(fent.getHeadAction()); } out.print("<BR/>"); } out.print("</TD>"); </jsp:scriptlet> </TABLE> </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 | 1847 | David Markley | Added package information for a more public distribution. | ||
#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. |