private String message, newUrl, contentType;
private ClientViewHelper clientHelper;
private MultipartParser multipartParser;
private int sizeLimit;
clientHelper = ClientViewHelper.clientViewHelperInstance(request);
contentType = request.getContentType();
message = "";
if (contentType != null && (contentType.indexOf("multipart/form-data") > -1)) {
//*** Process request here if a file update.
//*** Init the MultipartParser.
sizeLimit = (new Integer(PropertyService.getProperty("replication.datafilesizelimit"))).intValue();
multipartParser = new MultipartParser(request, sizeLimit * 1024 * 1024);
message = clientHelper.handleFileUpdate(multipartParser);
} else {
message = clientHelper.clientRequest(request, response);
}
newUrl = clientHelper.makeRedirectUrl();
if (newUrl != null) {
response.setContentType("text/html;charset=UTF-8");
response.sendRedirect("../../" + newUrl);
}
System.out.println("ClientViewHelper.jspx: " + message);