<%-- IBM Confidential OCO Source Material --%> <%-- 5724-J34, 5655-P28 (C) COPYRIGHT International Business Machines Corp. 2006 --%> <%-- The source code for this program is not published or otherwise divested --%> <%-- of its trade secrets, irrespective of what has been deposited with the --%> <%-- U.S. Copyright Office. --%> <%@ page language="java" import="java.util.*"%> <%@ page import="com.ibm.ws.console.core.*"%> <%@ taglib uri="/WEB-INF/ibmcommon.tld" prefix="ibmcommon" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> <% java.util.ArrayList attributeList_ext = new java.util.ArrayList(); for(int i=0;i <% // If there's no properties, don't show this section if (attributeList_ext.size() > 0) { %> <% String isRequired = item.getRequired(); String strType = item.getType(); String isReadOnly = item.getReadOnly(); %> <% if (strType.equalsIgnoreCase("Text")) { %> <% } %> <% if (strType.equalsIgnoreCase("TextMedium")) { %> <% } %> <% if (strType.equalsIgnoreCase("TextLong")) { %> <% } %> <% if (strType.equalsIgnoreCase("TextArea")) { %> <% } %> <% if (strType.equalsIgnoreCase("FilePath")) { %> <% } %> <% if (strType.equalsIgnoreCase("URL")) { %> <% } %> <% if (strType.equalsIgnoreCase("EMAIL")) { %> <% } %> <% if (strType.equalsIgnoreCase("XPATH")) { %> <% } %> <% if (strType.equalsIgnoreCase("checkbox")) { %> <% } %> <% if (strType.equalsIgnoreCase("Password")) { %> <% } %> <% if (strType.equalsIgnoreCase("Custom")) { %> <% } %> <% if (strType.equalsIgnoreCase("jsp")) { %> <% } %> <% if (strType.equalsIgnoreCase("select")) { try { session.removeAttribute("valueVector"); session.removeAttribute("descVector"); } catch (Exception e) { } StringTokenizer st1 = new StringTokenizer(item.getEnumDesc(), ","); Vector descVector = new Vector(); while(st1.hasMoreTokens()) { String enumDesc = st1.nextToken(); descVector.addElement(enumDesc); } StringTokenizer st = new StringTokenizer(item.getEnumValues(), ","); Vector valueVector = new Vector(); while(st.hasMoreTokens()) { String str = st.nextToken(); valueVector.addElement(str); } session.setAttribute("descVector", descVector); session.setAttribute("valueVector", valueVector); %> <% } %> <% if (strType.equalsIgnoreCase("Dynamicselect")) { try { session.removeAttribute("valueVector"); session.removeAttribute("descVector"); } catch (Exception e) { } //Vector valVector = (Vector) session.getAttribute(item.getEnumValues()); //Vector descriptVector = (Vector) session.getAttribute(item.getEnumDesc()); StringTokenizer st1 = new StringTokenizer(item.getEnumDesc(), ";,"); Vector descVector = new Vector(); while(st1.hasMoreTokens()) { String enumDesc = st1.nextToken(); descVector.addElement(enumDesc); } StringTokenizer st = new StringTokenizer(item.getEnumValues(), ";,"); Vector valueVector = new Vector(); while(st.hasMoreTokens()) { String str = st.nextToken(); valueVector.addElement(str); } session.setAttribute("descVector", descVector); session.setAttribute("valueVector", valueVector); %> <% } %> <% if (strType.equalsIgnoreCase("Radio")) { try { session.removeAttribute("valueVector"); session.removeAttribute("descVector"); } catch (Exception e) { } StringTokenizer st1 = new StringTokenizer(item.getEnumDesc(), ","); Vector descVector = new Vector(); while(st1.hasMoreTokens()) { String enumDesc = st1.nextToken(); descVector.addElement(enumDesc); } StringTokenizer st = new StringTokenizer(item.getEnumValues(), ","); Vector valueVector = new Vector(); while(st.hasMoreTokens()) { String str = st.nextToken(); valueVector.addElement(str); } session.setAttribute("descVector", descVector); session.setAttribute("valueVector", valueVector); %> <% } %>
<% } %>