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

📄 properties.jsp

📁 一个简单的EJB实例.用DB2连接.JSP页面.很好用.供大家学习
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<!--
 Licensed Material - Property of IBM 
 (C) Copyright IBM Corp. 2001 - All Rights Reserved. 
 US Government Users Restricted Rights - Use, duplication or disclosure 
 restricted by GSA ADP Schedule Contract with IBM Corp. 
-->

<%@ page errorPage="/error.jsp" import="java.util.Properties,java.util.Iterator" contentType="text/html; charset=utf-8" %>
<jsp:useBean id="jndiInfo" scope="session" class="com.ibm.etools.utc.view.JNDIInfo"/>
<%@ taglib uri="/utc" prefix="utc" %>

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="Content-Style-Type" content="text/css">
  <meta http-equiv="Pragma" content="no-cache">
  <meta http-equiv="Cache-Control" content="no-cache">
  <meta http-equiv="expires" content="0">
  <link rel=stylesheet type="text/css" href="/UTC/css/dynamic.css">
  <title><utc:resource key="propertiesPageTitle"/></title>
</head>

<body>

<div class="properties">
<table cellspacing=0 cellpadding=4 border=0 width=100%>
<form action="/UTC/jndiProperties" method="post" enctype="multipart/form-data">
<input type="hidden" name="random" value="<%= Math.random() %>"/>
<input type="hidden" name="action" value="set"/>
<tr valign="top">
  <td nowrap><label for="factory"><utc:resource key="propertiesPageInitialFactory"/></label>&nbsp;<span class="info">(INITIAL_CONTEXT_FACTORY)</span></td>
  <td width=55%><input type="text" id="factory" class="textenter" name="initialFactory" value="<%= jndiInfo.getInitialFactory() %>" size=50/></td>
  <td></td>
</tr>
<tr>
  <td nowrap><label for="url"><utc:resource key="propertiesPageProviderURL"/></label>&nbsp;<span class="info">(PROVIDER_URL)</span></td>
  <td><input type="text" id="url" class="textenter" name="providerURL" value="<%= jndiInfo.getProviderURL() %>" size=50/></td>
  <td></td>
</tr>
<tr>
  <td nowrap><label for="user"><utc:resource key="propertiesPageUser"/></label>&nbsp;<span class="info">(SECURITY_PRINCIPAL)</span></td>
  <td><input type="text" id="user" class="textenter" name="user" value="<%= jndiInfo.getUser() %>" size=30/></td>
  <td></td>
</tr>
<tr>
  <td nowrap><label for="password"><utc:resource key="propertiesPagePassword"/></label>&nbsp;<span class="info">(SECURITY_CREDENTIALS)</span></td>
  <td><input type="password" id="password" class="textenter" name="password" value="<%= jndiInfo.getPassword() %>" size=30/></td>
  <td><input type=submit value="<utc:resource key="propertiesPageSet"/>" class="button"/></td>
</tr>
</form>
<% String message = jndiInfo.getMessage();
  if (message != null) { %>
<tr>
  <td><utc:resource key="propertiesPageStatus"/></td>
</tr>
<tr>
  <td colspan=3><%= message %></td>
</tr>
<% } %>


<tr><td height=30></td></tr>
<tr>
  <td colspan="3"><utc:resource key="propertiesPageAdditionalProperties"/></td>
</tr>
<tr>
  <td colspan="3" valign="middle" height="15"><img src="/UTC/images/line.gif" width="100%" height="2"></td>
</tr>

<tr>
  <form action="/UTC/jndiProperties" method="post" enctype="multipart/form-data">
  <input type="hidden" name="random" value="<%= Math.random() %>"/>
  <input type="hidden" name="action" value="add"/>
  <td width=40%><label for="nameentry"><utc:resource key="propertiesPageName"/></label>&nbsp;<input type="text" id="nameentry" name="property" class="textenter2"/></td>
  <td width=40%><label for="valueentry"><utc:resource key="propertiesPageValue"/></label>&nbsp;<input type="text" id="valueentry" name="value" class="textenter2"/></td>
  <td><input type=submit value="<utc:resource key="propertiesPageAdd"/>" class="button"/></td>
  </form>
</tr>

<% Properties p = jndiInfo.getAdditionalProperties(); 
Iterator iterator = p.keySet().iterator(); 
while (iterator.hasNext()) {
  String property = (String) iterator.next();
  String value = p.getProperty(property); %>

<tr>
  <form action="/UTC/jndiProperties" method="post" enctype="multipart/form-data">
  <input type="hidden" name="random" value="<%= Math.random() %>"/>
  <input type="hidden" name="action" value="remove"/>
  <input type="hidden" name="property" value="<%= property %>"/>
  <td><%= property %></td>
  <td><%= value %></td>
  <td><input type=submit value="<utc:resource key="propertiesPageRemove"/>" class="button"/></td>
  </form>
</tr>
<% } %>

<% String message2 = jndiInfo.getMessage2();
  if (message2 != null) { %>
<tr>
  <td><utc:resource key="propertiesPageStatus"/></td>
</tr>
<tr>
  <td colspan=3><%= message2 %></td>
</tr>
<% } %>

</table>

</div>

</body>
</html>

⌨️ 快捷键说明

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