Replace DocumentUploadBulkProcessAction.java

parent 1c0ada80
...@@ -25,7 +25,8 @@ ...@@ -25,7 +25,8 @@
/* */ extends DispatchAction /* */ extends DispatchAction
/* */ { /* */ {
/* 45 */ private static final Logger logger = Logger.getLogger(DocumentUploadBulkProcessAction.class.getName()); /* 45 */ private static final Logger logger = Logger.getLogger(DocumentUploadBulkProcessAction.class.getName());
/* 46 */ static ResourceBundle resource = ResourceBundle.getBundle("com.yourcompany.struts.utill....."); /* 46 */ static ResourceBundle resource = ResourceBundle.getBundle("com.yourcompany.struts.utill");
/* 47 */ List<String> fileList = new ArrayList<>(); /* 47 */ List<String> fileList = new ArrayList<>();
/* 48 */ List<String> filesListInDir = null; /* 48 */ List<String> filesListInDir = null;
/* 49 */ String dateFormat = resource.getString("lbl.dateInDao"); /* 49 */ String dateFormat = resource.getString("lbl.dateInDao");
...@@ -34,6 +35,8 @@ ...@@ -34,6 +35,8 @@
/* */ /* */
/* */ public ActionForward callDocUploadInBulk(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { /* */ public ActionForward callDocUploadInBulk(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
/* 54 */ logger.info("the method is in callDocUploadInBulk called..... "); /* 54 */ logger.info("the method is in callDocUploadInBulk called..... ");
/* 54 */ logger.info(" Inside the method ..... ");
/* 55 */ HttpSession session = request.getSession(); /* 55 */ HttpSession session = request.getSession();
/* 56 */ boolean flag = false; /* 56 */ boolean flag = false;
/* 57 */ UserObject userobj = (UserObject)session.getAttribute("userobject"); /* 57 */ UserObject userobj = (UserObject)session.getAttribute("userobject");
...@@ -207,8 +210,8 @@ ...@@ -207,8 +210,8 @@
//Method Added by Amol S on 12-Nov to check the , valid file -strt //Method Added by Amol S on 12-Nov to check the , valid file -strt
public boolean isFileNamedvalid(String filename) public boolean isFileNamedvalid(String filename)
{ {
logger.info(" isFileNamedvalid Method called... " ); logger.info(" isFileNamedvalid Method called::--> " );
logger.info(" filename :--> " + filename); logger.info(" File name is :--> " + filename);
if (filename.contains("'") || filename.length() < 20) { if (filename.contains("'") || filename.length() < 20) {
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment