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
2cad9309
Commit
2cad9309
authored
Mar 13, 2024
by
Sonawane Amol Madhjuar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
88b9c9c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
143 additions
and
0 deletions
+143
-0
Amol/API/VisionUnsHSBC.jsp
Amol/API/VisionUnsHSBC.jsp
+143
-0
No files found.
Amol/API/VisionUnsHSBC.jsp
0 → 100644
View file @
2cad9309
<%@ page
language=
"java"
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%>
<%@page
import=
"ibase.utility.UserInfoBean"
%>
<%@page
import=
"ibase.utility.BaseLogger"
%>
<%
UserInfoBean
userInfo
=
null
;
String
message
=
""
;
try
{
String
url
=
"/ibase/jsp/VisionUnsHSBC.jsp"
;
userInfo
=
(
UserInfoBean
)
session
.
getAttribute
(
"USER_INFO"
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
"In VisionUnsHSBC.jsp userInfo:["
+
userInfo
+
"]"
);
if
(
userInfo
==
null
)
{
%>
<jsp:forward
page=
"/jsp/DirectAccess.jsp"
>
<jsp:param
name=
"REFERER"
value=
"<%=url%>"
/>
</jsp:forward>
<%
}
}
catch
(
Exception
e
)
{
BaseLogger
.
log
(
"0"
,
null
,
null
,
"Exception in UserActivityLog:::["
+
e
.
getMessage
()+
"]"
);
}
%>
<!DOCTYPE html>
<html>
<head>
<style>
body
{
font-family
:
Arial
,
sans-serif
;
margin
:
0
;
padding
:
0
;
/* display: flex; */
justify-content
:
center
;
align-items
:
center
;
}
div
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
.container
{
max-width
:
800px
;
margin
:
0
auto
;
padding
:
20px
;
display
:
flex
;
flex-direction
:
column
;
text-align
:
center
;
align-items
:
center
;
justify-content
:
center
;
}
}
h1
{
font-size
:
32px
;
margin-bottom
:
20px
;
text-align
:
center
;
}
button
{
font-size
:
18px
;
padding
:
10px
20px
;
background-color
:
#4CAF50
;
color
:
white
;
border
:
none
;
border-radius
:
4px
;
cursor
:
pointer
;
}
button
:hover
{
background-color
:
#3e8e41
;
}
#response
{
margin-top
:
10%
;
}
</style>
<meta
charset=
"UTF-8"
>
<title>
UNS-HSBC Integration
</title>
<!-- Add any necessary styles or scripts here -->
<script>
function
scheduleSFTP
()
{
// Display "Generating..." message
document
.
getElementById
(
"
result
"
).
innerHTML
=
"
Generating...
"
;
// 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
)
{
// Update the HTML content with the response
document
.
getElementById
(
"
result
"
).
innerHTML
=
this
.
responseText
;
}
};
// Open a POST request to the server-side servlet
xhttp
.
open
(
"
POST
"
,
"
ScheduledSftpUploaderServlet
"
,
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
// For example, xhttp.send("param1=value1¶m2=value2");
// Send the request
xhttp
.
send
();
}
</script>
</head>
<body>
<div
class=
"container"
>
<h2>
Schedule SFTP
</h2>
<!-- Add a button that triggers the scheduleSFTP function on click -->
<button
onclick=
"scheduleSFTP()"
>
Process Payment
</button>
<div
id=
"result"
>
<!-- The response from the server will be displayed here -->
</div>
</div>
</body>
</html>
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