- <?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.*" contentType="text/html;charset=ISO-8859-1"/>
- <jsp:directive.include file="session.jsp"/>
- <jsp:scriptlet>title="P4JSP Clients";</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>Clients:</H1>
- <TABLE cellspacing="4" cellpadding="3">
- <THEAD><TR><TH>Client</TH><TH>Description</TH></TR></THEAD>
- <TBODY>
- <jsp:scriptlet>
-
- class ClientComparator implements Comparator {
- public int compare(Object o1, Object o2) {
- return ((Client)o1).getName().compareTo(((Client)o2).getName());
- }
- public boolean equals(Object o) {
- return this.equals(o);
- }
- }
-
- TreeSet ts = new TreeSet(new ClientComparator());
-
- Enumeration en = Client.getClients(env);
- while (en.hasMoreElements()) {
- ts.add(en.nextElement());
- }
-
- Iterator itr = ts.iterator();
- while (itr.hasNext()) {
- Client clnt = (Client)itr.next();
- out.print("<TR>");
- out.print("<TD>"+clnt.getName()+"</TD>");
- out.print("<TD>"+clnt.getDescription()+"</TD>");
- out.print("</TR>");
- }
- </jsp:scriptlet>
- </TBODY></TABLE>
-
- </TD></TR>
- </TABLE></TD></TR>
- </TABLE></BODY></HTML></jsp:text>
- </jsp:root>
# |
Change |
User |
Description |
Committed |
|
#1
|
8157 |
michael |
Archiving legacy java api projects which predate the supported P4Java api. |
13 years ago
|
|
//public/perforce/api/java/p4jsp/web/clients.jsp |
#3
|
2207 |
David Markley |
Removed use of common tag library and reference to crimson API. |
22 years ago
|
|
#2
|
2081 |
David Markley |
Updated to support Tomcat 4.0.4 in the public depot. |
22 years ago
|
|
#1
|
1983 |
David Markley |
Branched p4jsp from guest to public depot. |
22 years ago
|
|
//guest/david_markley/p4jsp/web/clients.jsp |
#2
|
1842 |
David Markley |
Updated pages to include titles and added view and diff pages. |
23 years ago
|
|
#1
|
1824 |
David Markley |
Added initial files for p4jsp. |
23 years ago
|
|