001 package jsp;
002
003 import javax.servlet.*;
004 import javax.servlet.http.*;
005 import javax.servlet.jsp.*;
006
007 public final class requestCertificate_jsp extends org.apache.jasper.runtime.HttpJspBase
008 implements org.apache.jasper.runtime.JspSourceDependent {
009
010 private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
011
012 private static java.util.List _jspx_dependants;
013
014 private javax.el.ExpressionFactory _el_expressionfactory;
015 private org.apache.InstanceManager _jsp_instancemanager;
016
017 public Object getDependants() {
018 return _jspx_dependants;
019 }
020
021 public void _jspInit() {
022 _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
023 _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
024 }
025
026 public void _jspDestroy() {
027 }
028
029 public void _jspService(HttpServletRequest request, HttpServletResponse response)
030 throws java.io.IOException, ServletException {
031
032 PageContext pageContext = null;
033 HttpSession session = null;
034 ServletContext application = null;
035 ServletConfig config = null;
036 JspWriter out = null;
037 Object page = this;
038 JspWriter _jspx_out = null;
039 PageContext _jspx_page_context = null;
040
041
042 try {
043 response.setContentType("text/html; charset=ISO-8859-1");
044 pageContext = _jspxFactory.getPageContext(this, request, response,
045 null, true, 8192, true);
046 _jspx_page_context = pageContext;
047 application = pageContext.getServletContext();
048 config = pageContext.getServletConfig();
049 session = pageContext.getSession();
050 out = pageContext.getOut();
051 _jspx_out = out;
052
053 out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\" />\n<title>Request Certificate - Enter Name details</title>\n<script language=\"JavaScript\">\nfunction textElementsNotEmpty(formName, elementNameArray){\n var obj;\n for(i in elementNameArray){\n var elem = elementNameArray[i];\n obj = eval(\"document.forms['\" + formName + \"'].elements['\" + elem + \"']\"); \n if(isEmptyString(obj.value)){\n alert(elem + \" must not be empty.\");\n obj.focus(); \n return false; \n }\n }\n return true;\n}\nfunction isEmptyString(value){\n return value.length < 1;\n}\n\nvar formName = \"CertReqForm\";\nvar requiredFields = new Array(\"reqCN\", \"reqOU\", \"reqO\", \"reqL\", \"reqST\", \"reqC\");\n\nfunction validateForm(){\n if(!textElementsNotEmpty(formName, requiredFields))\n return false;\n ch = eval(\"document.\" + formName + \".challenge\"); \n");
054 out.write(" cf = eval(\"document.\" + formName + \".confirm\");\n if(ch.value != cf.value) {\n alert(\"Challenge phrase and confirm challenge do not match.\");\n ch.focus();\n return false;\n }\n return true;\n}\n\n</script>\n</head>\n<body>\n<h2>Request Certificate: Enter Name Details</h2>\n<p>This is step 1 of 2 in requesting your certificate. Please enter your identity details below.\nThe optional <i>Challenge Phrase</i> can be used later on if you ever need to revoke your certificate.\nThe next screen will let you review these details before submitting the certificate request.</p>\n\n<form action=\"confirmRequest.jsp\" method=\"post\" name=\"CertReqForm\">\n <table border=\"0\">\n <tr>\n <th colspan=\"2\" align=\"left\">Identity Details</th>\n </tr>\n <tr>\n <th align=\"right\">Common Name (CN):</th>\n <td>\n <input type=\"text\" name=\"reqCN\" size=\"20\" maxlength=\"200\"/>\n </td>\n </tr>\n <tr>\n <th align=\"right\">Division/Business Unit (OU):</th>\n");
055 out.write(" <td>\n <input type=\"text\" name=\"reqOU\" size=\"20\" maxlength=\"200\"/>\n </td>\n </tr>\n <tr>\n <th align=\"right\">Company/Organization (O):</th>\n <td>\n <input type=\"text\" name=\"reqO\" size=\"20\" maxlength=\"200\"/>\n </td>\n </tr>\n <tr>\n <th align=\"right\">City/Locality (L):</th>\n <td>\n <input type=\"text\" name=\"reqL\" size=\"20\" maxlength=\"200\"/>\n </td>\n </tr>\n <tr>\n <th align=\"right\">State/Province (ST):</th>\n <td>\n <input type=\"text\" name=\"reqST\" size=\"20\" maxlength=\"200\"/>\n </td>\n </tr>\n <tr>\n <th align=\"right\">Country Code (2 char) (C):</th>\n <td>\n <input type=\"text\" name=\"reqC\" size=\"3\" maxlength=\"2\"/>\n </td>\n </tr>\n <tr>\n <td> </td>\n </tr>\n <tr>\n <th align=\"right\">Challenge Phrase</th>\n <td>\n");
056 out.write(" <input type=\"password\" name=\"challenge\" size=\"20\" maxlength=\"200\"/>\n </td>\n </tr>\n <tr>\n <th align=\"right\">Confirm Challenge</th>\n <td>\n <input type=\"password\" name=\"confirm\" size=\"20\" maxlength=\"200\"/>\n </td>\n </tr>\n </table>\n <input type=\"submit\" value=\"Review Name Details\" onClick=\"return validateForm();\"/>\n <input type=\"reset\" name=\"reset\" value=\"Reset\"/>\n</form>\n<a href=\"");
057 out.print(request.getContextPath());
058 out.write("\">Cancel</a>\n</body>\n</html>\n");
059 } catch (Throwable t) {
060 if (!(t instanceof SkipPageException)){
061 out = _jspx_out;
062 if (out != null && out.getBufferSize() != 0)
063 try { out.clearBuffer(); } catch (java.io.IOException e) {}
064 if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
065 }
066 } finally {
067 _jspxFactory.releasePageContext(_jspx_page_context);
068 }
069 }
070 }