feat(DevWeb): Create profile page

This commit is contained in:
Lucàs
2024-04-17 19:09:26 +02:00
parent ffd415c9e3
commit 4d35a01a2a
2 changed files with 84 additions and 0 deletions
@@ -0,0 +1,29 @@
/*
* LoginServlet.java, 20/03/2024
* UPPA M1 TI 2023-2024
* Pas de copyright, aucun droits
*/
package uppa.project.web.servlet;
import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
@WebServlet(name = "profileServlet", value = "/profile")
public class ProfileServlet extends HttpServlet {
public void init() {
}
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
// request.setAttribute("current", "profile");
request.getRequestDispatcher("/WEB-INF/pages/profile.jsp").forward(request, response);
}
public void destroy() {
}
}