⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addendentity.jsp

📁 一套JAVA的CA证书签发系统.
💻 JSP
📖 第 1 页 / 共 5 页
字号:
                 String[] options = profile.getValue(fielddata[EndEntityProfile.FIELDTYPE],fielddata[EndEntityProfile.NUMBER]).split(EndEntityProfile.SPLITCHAR);               %>           <select name="<%= SELECT_SUBJECTALTNAME + i %>" size="1" tabindex="<%=tabindex++%>">               <% if( options != null){                    for(int j=0;j < options.length;j++){ %>             <option value='<%=options[j].trim()%>' <% if( lastselectedsubjectaltnames != null)                                                          if(lastselectedsubjectaltnames[i].equals(options[j])) out.write(" selected "); %>>                 <%=options[j].trim()%>             </option>                               <%   }                  }                %>           </select>           <% }else{ %>              <input type="text" name="<%= TEXTFIELD_SUBJECTALTNAME + i %>" size="40" maxlength="255" tabindex="<%=tabindex++%>" value='<%= profile.getValue(fielddata[EndEntityProfile.FIELDTYPE],fielddata[EndEntityProfile.NUMBER]) %>'>           <% }            }            else{ %>              <%= ejbcawebbean.getText("USESEMAILFIELDDATA") + " :"%>&nbsp;        <input type="checkbox" name="<%=CHECKBOX_SUBJECTALTNAME + i%>" value="<%=CHECKBOX_VALUE %>" tabindex="<%=tabindex++%>" <% if(profile.isRequired(fielddata[EndEntityProfile.FIELDTYPE],fielddata[EndEntityProfile.NUMBER]))                                                                                                                 out.write(" CHECKED ");                                                                                                                if(profile.isRequired(fielddata[EndEntityProfile.FIELDTYPE],fielddata[EndEntityProfile.NUMBER]))                                                                                                                 out.write(" disabled='true' ");                                                                                                              %>>         <% } %>           </td>	<td><input type="checkbox" name="<%= CHECKBOX_REQUIRED_SUBJECTALTNAME + i %>" value="<%= CHECKBOX_VALUE %>"  disabled="true" <% if(profile.isRequired(fielddata[EndEntityProfile.FIELDTYPE],fielddata[EndEntityProfile.NUMBER])) out.write(" CHECKED "); %>></td>      </tr>     <%  }        } %>        <tr id="Row<%=(row++)%2%>">	 <td>&nbsp;</td>	 <td>&nbsp;</td>	 <td>&nbsp;</td>	 <td>&nbsp;</td>       </tr>       <tr id="Row<%=(row++)%2%>">	 <td></td>	 <td align="right"><%= ejbcawebbean.getText("CERTIFICATEPROFILE") %></td>	 <td>         <select name="<%= SELECT_CERTIFICATEPROFILE %>" size="1" tabindex="<%=tabindex++%>" onchange='fillCAField()'>         <%           String[] availablecertprofiles = profile.getValue(EndEntityProfile.AVAILCERTPROFILES, 0).split(EndEntityProfile.SPLITCHAR);           if(lastselectedcertificateprofile.equals(""))             lastselectedcertificateprofile= profile.getValue(EndEntityProfile.DEFAULTCERTPROFILE,0);           if( availablecertprofiles != null){             for(int i =0; i< availablecertprofiles.length;i++){         %>         <option value='<%=availablecertprofiles[i]%>' <% if(lastselectedcertificateprofile.equals(availablecertprofiles[i])) out.write(" selected "); %> >            <%= rabean.getCertificateProfileName(Integer.parseInt(availablecertprofiles[i])) %>         </option>         <%             }           }         %>         </select>         </td>	 <td><input type="checkbox" name="checkbox" value="true"  disabled="true" CHECKED></td>       </tr>       <tr id="Row<%=(row++)%2%>">	 <td></td>	 <td align="right"><%= ejbcawebbean.getText("CA") %></td>	 <td>         <select name="<%= SELECT_CA %>" size="1" tabindex="<%=tabindex++%>">         </select>         </td>	 <td><input type="checkbox" name="checkbox" value="true"  disabled="true" CHECKED></td>       </tr>       <tr id="Row<%=(row++)%2%>">	 <td></td>	 <td align="right"><%= ejbcawebbean.getText("TOKEN") %></td>	 <td>         <select name="<%= SELECT_TOKEN %>" size="1" tabindex="<%=tabindex++%>" onchange='<% if(usehardtokenissuers) out.write("setAvailableHardTokenIssuers();");                                                                                             if(usekeyrecovery) out.write(" isKeyRecoveryPossible();");%>'>         <%           if(lastselectedtoken.equals(""))             lastselectedtoken= profile.getValue(EndEntityProfile.DEFKEYSTORE,0);           if( availabletokens != null){             for(int i =0; i < availabletokens.length;i++){         %>         <option value='<%=availabletokens[i]%>' <% if(lastselectedtoken.equals(availabletokens[i])) out.write(" selected "); %> >            <% for(int j=0; j < tokentexts.length; j++){                 if( tokenids[j] == Integer.parseInt(availabletokens[i])) {                   if( tokenids[j] > SecConst.TOKEN_SOFT)                     out.write(tokentexts[j]);                   else                     out.write(ejbcawebbean.getText(tokentexts[j]));                 }               }%>         </option>         <%             }           }         %>         </select>         </td>	 <td><input type="checkbox" name="checkbox" value="true"  disabled="true" CHECKED></td>       </tr>       <% if(usehardtokenissuers){ %>       <tr id="Row<%=(row++)%2%>">	 <td></td>	 <td align="right"><%= ejbcawebbean.getText("HARDTOKENISSUER") %></td>	 <td>         <select name="<%= SELECT_HARDTOKENISSUER %>" size="1" tabindex="<%=tabindex++%>">         </select>         </td>	 <td></td>       </tr>       <% } %>       <% if( profile.getUse(EndEntityProfile.ADMINISTRATOR,0) || usekeyrecovery){ %>       <tr id="Row<%=(row++)%2%>">	 <td></td>	 <td align="right"><%= ejbcawebbean.getText("TYPES") %></td>	 <td>         </td>	 <td></td>       </tr>       <% } %>      <% if(profile.getUse(EndEntityProfile.ADMINISTRATOR,0)){ %>    <tr  id="Row<%=(row++)%2%>">       <td></td>      <td  align="right">         <%= ejbcawebbean.getText("ADMINISTRATOR") %> <br>      </td>      <td >         <input type="checkbox" name="<%=CHECKBOX_ADMINISTRATOR%>" value="<%=CHECKBOX_VALUE %>" tabindex="<%=tabindex++%>" <% if(profile.getValue(EndEntityProfile.ADMINISTRATOR,0).equals(EndEntityProfile.TRUE))                                                                                                                 out.write(" CHECKED ");                                                                                                                if(profile.isRequired(EndEntityProfile.ADMINISTRATOR,0))                                                                                                                 out.write(" disabled='true' ");                                                                                                              %>>       </td>      <td></td>    </tr>      <%} if(usekeyrecovery){ %>    <tr  id="Row<%=(row++)%2%>">       <td></td>      <td  align="right">         <%= ejbcawebbean.getText("KEYRECOVERABLE") %>       </td>      <td>         <input type="checkbox" name="<%=CHECKBOX_KEYRECOVERABLE%>" value="<%=CHECKBOX_VALUE %>" tabindex="<%=tabindex++%>"<% if(profile.getValue(EndEntityProfile.KEYRECOVERABLE,0).equals(EndEntityProfile.TRUE))                                                                                                                 out.write(" CHECKED ");                                                                                                                if(profile.isRequired(EndEntityProfile.KEYRECOVERABLE,0))                                                                                                                 out.write(" disabled='true' ");                                                                                                              %>>        </td>      <td></td>    </tr>     <% }if(profile.getUse(EndEntityProfile.SENDNOTIFICATION,0)){ %>    <tr  id="Row<%=(row++)%2%>">       <td></td>      <td  align="right">         <%= ejbcawebbean.getText("SENDNOTIFICATION") %> <br>      </td>      <td >         <input type="checkbox" name="<%=CHECKBOX_SENDNOTIFICATION%>" value="<%=CHECKBOX_VALUE %>" tabindex="<%=tabindex++%>" <% if(profile.getValue(EndEntityProfile.SENDNOTIFICATION,0).equals(EndEntityProfile.TRUE))                                                                                                                 out.write(" CHECKED ");                                                                                                                if(profile.isRequired(EndEntityProfile.SENDNOTIFICATION,0))                                                                                                                 out.write(" disabled='true' ");                                                                                                              %>>       </td>      <td></td>    </tr>      <%} %>       <tr id="Row<%=(row++)%2%>">	 <td></td>	 <td></td>	 <td><input type="submit" name="<%= BUTTON_ADDUSER %>" value="<%= ejbcawebbean.getText("ADDENDENTITY") %>" tabindex="<%=tabindex++%>"                    onClick='return checkallfields()'>              <input type="reset" name="<%= BUTTON_RESET %>" value="<%= ejbcawebbean.getText("RESET") %>" tabindex="<%=tabindex++%>"></td>         <td></td>       </tr>      </table>      <script language=javascript><!--function viewuser(row){    var hiddenusernamefield = eval("document.adduser.<%= HIDDEN_USERNAME %>" + row);    var username = hiddenusernamefield.value;    var link = "<%= VIEWUSER_LINK %>?<%= USER_PARAMETER %>="+username;    link = encodeURI(link);    window.open(link, 'view_user','height=600,width=500,scrollbars=yes,toolbar=no,resizable=1');}function edituser(row){    var hiddenusernamefield = eval("document.adduser.<%= HIDDEN_USERNAME %>" + row);    var username = hiddenusernamefield.value;    var link = "<%= EDITUSER_LINK %>?<%= USER_PARAMETER %>="+username;    link = encodeURI(link);    window.open(link, 'edit_user','height=600,width=550,scrollbars=yes,toolbar=no,resizable=1');}--></script>   <% if(addedusers == null || addedusers.length == 0){     %>  <table width="100%" border="0" cellspacing="1" cellpadding="0">  <tr id="Row0">     <td width="10%">&nbsp;</td>    <td width="20%">&nbsp;</td>    <td width="20%">&nbsp;</td>    <td width="20%">&nbsp;</td>    <td width="30%">&nbsp;</td>  </tr>  <% } else{ %>  <div align="center"><H4><%= ejbcawebbean.getText("PREVIOUSLYADDEDENDENTITIES") %> </H4></div>  <p>    <input type="submit" name="<%=BUTTON_RELOAD %>" value="<%= ejbcawebbean.getText("RELOAD") %>">  </p>  <table width="100%" border="0" cellspacing="1" cellpadding="0">  <tr>     <td width="10%"><%= ejbcawebbean.getText("USERNAME") %>                  </td>    <td width="20%"><%= ejbcawebbean.getText("COMMONNAME") %>    </td>    <td width="20%"><%= ejbcawebbean.getText("ORGANIZATIONUNIT") %>    </td>    <td width="20%"><%= ejbcawebbean.getText("ORGANIZATION") %>                     </td>    <td width="30%"> &nbsp;    </td>  </tr>    <%   for(int i=0; i < addedusers.length; i++){            if(addedusers[i] != null){       %>       <tr id="Row<%= i%2 %>">     <td width="15%"><%= addedusers[i].getUsername() %>       <input type="hidden" name='<%= HIDDEN_USERNAME + i %>' value='<%=java.net.URLEncoder.encode(addedusers[i].getUsername(),"UTF-8")%>'>    </td>    <td width="20%"><%= addedusers[i].getSubjectDNField(DNFieldExtractor.CN,0)  %></td>    <td width="20%"><%= addedusers[i].getSubjectDNField(DNFieldExtractor.OU,0) %></td>    <td width="20%"><%= addedusers[i].getSubjectDNField(DNFieldExtractor.O,0) %></td>    <td width="25%">        <A style="cursor:hand;" onclick='viewuser(<%= i %>)'>        <u><%= ejbcawebbean.getText("VIEWENDENTITY") %></u> </A>        <A style="cursor:hand;" onclick='edituser(<%= i %>)'>        <u><%= ejbcawebbean.getText("EDITENDENTITY") %></u> </A>    </td>  </tr> <%        }         }       }     }%>  </table>  </form>   <p></p>  <%// Include Footer    String footurl =   globalconfiguration .getFootBanner(); %>     <jsp:include page="<%= footurl %>" /></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -