diff --git a/src/main/java/servlet/VideoServlet.java b/src/main/java/servlet/VideoServlet.java new file mode 100644 index 0000000000000000000000000000000000000000..7ec6150a76b208dbaeef93a64551bc0ef0f3a5b2 --- /dev/null +++ b/src/main/java/servlet/VideoServlet.java @@ -0,0 +1,31 @@ +package servlet; + +import beans.Post; +import dao.DaoFactory; +import dao.PostDao; +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; +import java.util.List; + +/** + * + * @author Adrien + */ +@WebServlet(name = "Video", urlPatterns = {"/video"}) +public class VideoServlet extends HttpServlet { + + private static final String VIEW = "/WEB-INF/video.jsp"; + + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) + throws ServletException, IOException { + PostDao postDao = DaoFactory.getPostDao(); + List posts = postDao.list(); + request.setAttribute("posts", posts); + this.getServletContext().getRequestDispatcher(VIEW).forward(request, response); + } +} \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/home.jsp b/src/main/webapp/WEB-INF/home.jsp index c49fca04bdf17e277d57e8b67cef97a55ef49d78..48563b2b66af538b2c5967c80487b2414e5cdabd 100644 --- a/src/main/webapp/WEB-INF/home.jsp +++ b/src/main/webapp/WEB-INF/home.jsp @@ -10,7 +10,7 @@ My Latest Tricks - + <%@include file="jspf/header.jspf" %> diff --git a/src/main/webapp/WEB-INF/video.jsp b/src/main/webapp/WEB-INF/video.jsp new file mode 100644 index 0000000000000000000000000000000000000000..e009783fe8ef3ce0c9299b296d29d5f48e495799 --- /dev/null +++ b/src/main/webapp/WEB-INF/video.jsp @@ -0,0 +1,65 @@ +<%-- + Document : video + Created on : 13 oct. 2026, 09:16:14 + Author : Adrien +--%> +<%@ taglib prefix="c" uri="jakarta.tags.core" %> +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + Video + + + + <%@include file="jspf/header.jspf" %> +
+
+
+
+ +
+
+
+
360 flip par Jean-Guy
+

13 Octobre 2026

+
+
+ thumbs up +

340

+ thumbs down +
+
+
+

+ Dans cette vidéo, je te montre comment réussir ton premier kickflip. On commence par la position des pieds, puis le mouvement de cheville et enfin l'atterrissage. + Regarde les ralentis pour bien comprendre le timing. N'oublie pas de protéger tes genoux et de commencer sur une surface plane. +

+
+
+
+

Commentaires

+
+ Profile picture +
+ + +
+
+ +
+ Profile picture +
+

Amina Benali

+

13 Octobre 2026

+

"Reception propre comme jamais vue, c’est ça la différence entre un trick qui passe et un trick propre."

+

Signaler

+
+
+
+
+
+ <%@include file="jspf/footer.jspf" %> + + diff --git a/src/main/webapp/assets/img/thumbs-down-bw.png b/src/main/webapp/assets/img/thumbs-down-bw.png new file mode 100644 index 0000000000000000000000000000000000000000..2c8522c179fb10e952d7046076653a49a969b96c Binary files /dev/null and b/src/main/webapp/assets/img/thumbs-down-bw.png differ diff --git a/src/main/webapp/assets/img/thumbs-down.png b/src/main/webapp/assets/img/thumbs-down.png new file mode 100644 index 0000000000000000000000000000000000000000..513b1bf739ba08229cdfd955127af05a917ff2e6 Binary files /dev/null and b/src/main/webapp/assets/img/thumbs-down.png differ diff --git a/src/main/webapp/assets/img/thumbs-up-bw.png b/src/main/webapp/assets/img/thumbs-up-bw.png new file mode 100644 index 0000000000000000000000000000000000000000..191505bb4c1759bbc1ec715bf3070254df600e2c Binary files /dev/null and b/src/main/webapp/assets/img/thumbs-up-bw.png differ diff --git a/src/main/webapp/assets/img/thumbs-up.png b/src/main/webapp/assets/img/thumbs-up.png new file mode 100644 index 0000000000000000000000000000000000000000..c8f14745e94bf0a650318ddc3e17e818eb433527 Binary files /dev/null and b/src/main/webapp/assets/img/thumbs-up.png differ