+ Added CT creation Servlet

main
Flavien 1 year ago
parent b3bfacfc92
commit e3aed5b082

@ -0,0 +1,24 @@
package fr.sixthemes;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet(urlPatterns = "/createct")
public class CreateCTHandler extends HttpServlet {
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
resp.sendRedirect("/");
}
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
this.getServletContext().getRequestDispatcher("/WEB-INF/index.jsp").forward(req, resp);
}
}

@ -0,0 +1,13 @@
<%@ page pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<%@include file="/WEB-INF/templates/style.jsp"%>
</head>
<body>
</body>
</html>

@ -37,7 +37,7 @@
<h1 style="text-align: center;">6-Deploy</h1>
<!-- <hr> -->
</div>
<form action="" method="post">
<form action="/createct" method="post">
<div class="container">
<h2><i class="fa fa-server" aria-hidden="true"></i> Paramètres du conteneur</h2>

Loading…
Cancel
Save