Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Component Sharing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gagandeep Singh Bhatia
Component Sharing
Commits
3f214449
Commit
3f214449
authored
Nov 14, 2024
by
Sonawane Amol Madhjuar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace DocumentUploadBulkProcessAction.java
parent
1c0ada80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Amol/ITIOmniFin/DocumentUploadBulkProcessAction.java
Amol/ITIOmniFin/DocumentUploadBulkProcessAction.java
+6
-3
No files found.
Amol/ITIOmniFin/DocumentUploadBulkProcessAction.java
View file @
3f214449
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment