<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %> <%@ page import="java.util.*" %> <%@ page import="com.ozesys.dosm.FieldInfo" %> <% if (!sessionManager.keepAlive(credentials,getServletInfo())) { %> <-- jsp:forward page="RequestLogin.jsp" /> <% } %> <% String appid = credentials.getGlobalAppID(); appUtils.setAppName(credentials.getAppName()); appUtils.setUserType(credentials); %> OZe Demo System - Upload Form
User <%=credentials.getUser()%> Logged In.  


Oze Demo System Upload Form

  <% System.out.println("Before hashtable"); Hashtable indexFields = null; if(appUtils.setIndexFieldsOnMultiForm(credentials,request, true,true)){ indexFields = credentials.indexFields; } System.out.println("After hashtable"); int numFields =indexFields.size(); System.out.println("After hashtable numFields"+numFields); int counter = 0; while(counter < numFields){ String fieldname = ""; String displayText = ""; String indexLength = ""; String isCustField = ""; String fieldType = ""; String indexVal = ""; String custOutput = ""; //Loop through the fields extracting them in the right order. Enumeration keys = indexFields.keys(); loop:while(keys.hasMoreElements()){ String index = (String)keys.nextElement(); FieldInfo indexFieldInfo = (FieldInfo) indexFields.get(index); System.out.println("counter ="+counter+", indexFieldInfo.order="+indexFieldInfo.order); if(indexFieldInfo.order == counter){ fieldname = indexFieldInfo.fieldName; displayText = indexFieldInfo.displayText; indexLength = indexFieldInfo.indexLength; isCustField = indexFieldInfo.isCustField; fieldType = indexFieldInfo.fieldType; indexVal = indexFieldInfo.value; custOutput = indexFieldInfo.formObject; break loop; } } if(indexVal == null){ indexVal = ""; } if(indexVal.equals("null")){ indexVal = ""; }%> <% counter++; }%>
<%=displayText%> <% if(!isCustField.equals("1")){ if(custOutput.equals("")){%> <% } else { System.out.println("Using custom output");%> <%=custOutput%> <% } } else { Vector custListVals = appUtils.getListVals(appid,fieldname); %> <%} if(isCustField.equals(common.DATE_FIELD_TYPE)){ %> ( <%=appUtils.getDateFormatForField(credentials,fieldname)%> ) <%}%>
 
File Name: