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
df18953f
Commit
df18953f
authored
Mar 13, 2024
by
Sonawane Amol Madhjuar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace VisionUnsHSBC.jsp
parent
630cca2e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
25 deletions
+43
-25
Amol/ScheduleSftp/VisionUnsHSBC.jsp
Amol/ScheduleSftp/VisionUnsHSBC.jsp
+43
-25
No files found.
Amol/ScheduleSftp/VisionUnsHSBC.jsp
View file @
df18953f
...
...
@@ -10,7 +10,7 @@ UserInfoBean userInfo = null;
String
message
=
""
;
try
{
String
url
=
"/ibase/jsp/VisionUnsHSBC.jsp"
;
String
url
=
"/ibase/
webitm/
jsp/VisionUnsHSBC.jsp"
;
userInfo
=
(
UserInfoBean
)
session
.
getAttribute
(
"USER_INFO"
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
"In VisionUnsHSBC.jsp userInfo:["
+
userInfo
+
"]"
);
if
(
userInfo
==
null
)
...
...
@@ -27,6 +27,16 @@ try
%>
<%
String
baseUrl
=
request
.
getScheme
()
+
"://"
+
request
.
getServerName
()
+
":"
+
request
.
getServerPort
();
String
processPaymentServletURL
=
baseUrl
+
"/ibase/ScheduledSftpUploaderServlet"
;
BaseLogger
.
log
(
"3"
,
userInfo
,
null
,
"processPaymentServletURL ["
+
processPaymentServletURL
+
"]"
);
%>
<!DOCTYPE html>
<html>
<head>
...
...
@@ -60,6 +70,7 @@ div {
align-items
:
center
;
justify-content
:
center
;
}
}
h1
{
...
...
@@ -96,22 +107,27 @@ button:hover {
<!-- Add any necessary styles or scripts here -->
<script>
function
scheduleSFTP
()
{
// Display "Generating..." message
document
.
getElementById
(
"
result
"
).
innerHTML
=
"
Processing....
"
;
<script>
function
scheduleSFTP
()
{
// Create an XMLHttpRequest object
var
xhttp
=
new
XMLHttpRequest
();
// Define the function to handle the response
xhttp
.
onreadystatechange
=
function
()
{
if
(
this
.
readyState
==
4
&&
this
.
status
==
200
)
{
xhttp
.
onreadystatechange
=
function
()
{
if
(
this
.
readyState
==
4
)
{
if
(
this
.
status
==
200
)
{
// Update the HTML content with the response
document
.
getElementById
(
"
result
"
).
innerHTML
=
this
.
responseText
;
document
.
getElementById
(
"
result
"
).
innerHTML
=
"
Processing complete:
"
+
this
.
responseText
;
}
else
{
// Handle errors or show an appropriate message
document
.
getElementById
(
"
result
"
).
innerHTML
=
"
Error occurred during processing.
"
;
}
}
};
// Open a POST request to the server-side servlet
xhttp
.
open
(
"
POST
"
,
"
ScheduledSftpUploaderServlet
"
,
true
);
xhttp
.
open
(
"
POST
"
,
"
<%=
processPaymentServletURL
%>
"
,
true
);
// Set the Content-Type header for a POST request
xhttp
.
setRequestHeader
(
"
Content-type
"
,
"
application/x-www-form-urlencoded
"
);
// You can add data to be sent with the request if needed
...
...
@@ -119,7 +135,9 @@ button:hover {
// Send the request
xhttp
.
send
();
}
</script>
</script>
...
...
@@ -127,7 +145,7 @@ button:hover {
<body>
<div
class=
"container"
>
<h
1>
UNS-HSBC Integration
</h1
>
<h
2>
Schedule SFTP
</h2
>
<!-- Add a button that triggers the scheduleSFTP function on click -->
<button
onclick=
"scheduleSFTP()"
>
Process Payment
</button>
...
...
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