String logDir = applicationBindingBusiness.put(LOG_FILE_FOLDER_PATH, defaultLogFolderPath); String outLogName = applicationBindingBusiness.put(LOG_FILE_OUT_NAME, defaultLogFileName); String errLogName = applicationBindingBusiness.put(LOG_FILE_ERROR_NAME, defaultLogFileName);
String logDir = settings.getProperty(LOG_FILE_FOLDER_PATH, defaultLogFolderPath); String outLogName = settings.getProperty(LOG_FILE_OUT_NAME, defaultLogFileName); String errLogName = settings.getProperty(LOG_FILE_ERROR_NAME, defaultLogFileName);
	private void processBusiness(IWContext iwc, Table table) throws Exception {		ICApplicationBindingBusiness applicationBindingBusiness = getApplicationBindingBusiness(iwc);		//this works only for the default tomcat setup but you can change the		// path in application properties		table.setColor(1,3,"#dddddd");		table.setColor(1,4,"#cecece");		String defaultLogFolderPath = System.getProperty("user.dir") + FileUtil.getFileSeparator() + ".."				+ FileUtil.getFileSeparator() + "logs" + FileUtil.getFileSeparator();		String defaultLogFileName = "catalina.out";				String logDir = applicationBindingBusiness.put(LOG_FILE_FOLDER_PATH, defaultLogFolderPath);		String outLogName = applicationBindingBusiness.put(LOG_FILE_OUT_NAME, defaultLogFileName);		String errLogName = applicationBindingBusiness.put(LOG_FILE_ERROR_NAME, defaultLogFileName);				if (iwc.isParameterSet(PARAM_VIEW_OUT_LOG)) {			if(outLogName.indexOf("/")>0 || outLogName.indexOf("\\")>0 ){				//it's a full path				logDir = outLogName;			}			else{				logDir = logDir + outLogName;			}		}		else if (iwc.isParameterSet(PARAM_VIEW_ERR_LOG)) {			if(outLogName.indexOf("/")>0 || outLogName.indexOf("\\")>0 ){				//it's a full path				logDir = errLogName;			}			else{				logDir = logDir + errLogName;			}		}				table.add(logDir,1,3);		table.add("<pre>" + FileUtil.getStringFromFile(logDir) + "</pre>", 1, 4);				//		else if (iwc.isParameterSet(PARAM_CLEAR_OUT_LOG)) {		//			tomcatLogDir = tomcatLogDir + outLogName;		//			FileUtil.delete(tomcatLogDir);		//			FileUtil.createFile(tomcatLogDir);		//			table.add("<b>Out log cleared!</b><br>", 1, 2);		//			table.add("<pre>" + FileUtil.getStringFromFile(tomcatLogDir) +		// "</pre>", 1, 2);		//		}		//		else if (iwc.isParameterSet(PARAM_CLEAR_ERR_LOG)) {		//			tomcatLogDir = tomcatLogDir + errLogName;		//			FileUtil.delete(tomcatLogDir);		//			FileUtil.createFile(tomcatLogDir);		//			table.add("<b>Error log cleared!</b><br>", 1, 2);		//			table.add("<pre>" + FileUtil.getStringFromFile(tomcatLogDir) +		// "</pre>", 1, 2);		//		}	}