Delete ScheduleSFTP.jsp

parent 80e4346a
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Schedule SFTP</title>
<!-- Add any necessary styles or scripts here -->
<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) {
// 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>
<h2>Schedule SFTP</h2>
<!-- Add a button that triggers the scheduleSFTP function on click -->
<button onclick="scheduleSFTP()">Schedule SFTP</button>
<div id="result">
<!-- The response from the server will be displayed here -->
</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