<?xml version="1.0"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2">
<jsp:directive.page import="java.io.*,java.net.*,java.util.*,com.perforce.api.*" contentType="text/html;charset=ISO-8859-1"/>
<jsp:useBean id="base_env" scope="application" class="com.perforce.api.Env"/>
<jsp:useBean id="env" scope="session" class="com.perforce.api.Env"/>
<jsp:scriptlet>
String usr = request.getParameter("usr");
String passwd = request.getParameter("passwd");
String dest = request.getParameter("dest");
env.setFromProperties(base_env.getProperties());
env.setUser(usr);
env.setPassword(passwd);
try {
env.checkValidity();
session.setAttribute("loggedin", "yes");
} catch (PerforceException pex) {
if (null == dest) {
response.sendRedirect(response.encodeRedirectURL("login.jsp"));
} else {
dest = URLEncoder.encode(dest);
response.sendRedirect(response.encodeRedirectURL("login.jsp?dest="+dest));
}
return;
}
if (null == dest) {
response.sendRedirect(response.encodeRedirectURL("index.jsp"));
} else {
dest = URLDecoder.decode(dest);
response.sendRedirect(response.encodeRedirectURL(dest));
}
</jsp:scriptlet>
</jsp:root>
# |
Change |
User |
Description |
Committed |
|
#1
|
8157 |
michael |
Archiving legacy java api projects which predate the supported P4Java api. |
|
|
//public/perforce/api/java/p4jsp/web/setenv.jsp |
#3
|
2212 |
David Markley |
Fixed useBean bug to support Tomcat 4.1.12 |
|
|
#2
|
2081 |
David Markley |
Updated to support Tomcat 4.0.4 in the public depot. |
|
|
#1
|
1983 |
David Markley |
Branched p4jsp from guest to public depot. |
|
|
//guest/david_markley/p4jsp/web/setenv.jsp |
#2
|
1847 |
David Markley |
Added package information for a more public distribution. |
|
|
#1
|
1824 |
David Markley |
Added initial files for p4jsp. |
|
|