Handler actionHandler = new ActionHandler(actionMapping, constants);
handler = HandlerFactory.getHandler(Config.getHandlers().getHandlerList(), actionHandler);
}
private void initOreillyCos() {
Constants ct = constants;
if (OreillyCos.isMultipartSupported()) {
String uploadedFileSaveDirectory = ct.getUploadedFileSaveDirectory();
if (uploadedFileSaveDirectory == null || "".equals(uploadedFileSaveDirectory.trim())) {
uploadedFileSaveDirectory = PathUtil.getWebRootPath() + File.separator + "upload" + File.separator;
ct.setUploadedFileSaveDirectory(uploadedFileSaveDirectory);
/*File file = new File(uploadedFileSaveDirectory);
if (!file.exists())
file.mkdirs();*/
}
OreillyCos.init(uploadedFileSaveDirectory, ct.getMaxPostSize(), ct.getEncoding());
}
}