Upload New File

parent 88b9c9c4
<%@ 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&param2=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>
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