package org.splat.simer;
import java.io.File;
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
import org.splat.kernel.Do;
import org.splat.service.technical.RepositoryService;
initializationFullScreenContext(Constants.SYSADMIN_MENU,
Constants.STUDY_MENU, Constants.TRUE, Constants.NONE,
Constants.OPEN);
+ setSimanContext("#Database_Management.htm");
return SUCCESS;
}
return _uploadFileName;
}
+ /**
+ * Get fileName with url special symbols canceled for usage in struts.xml.
+ * @return the encoded uploaded file name.
+ */
+ public String getCanceledFileName() {
+ String res = _uploadFileName;
+ try {
+ res = URLEncoder.encode(res, "ISO-8859-1");
+ } catch (UnsupportedEncodingException e) {
+ LOG.error("Reason: ", e);
+ }
+ return res;
+ }
+
/**
* Get the action to which the uploaded file is passed.
*