update to jakarta + servlet 4.0
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
|
||||
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
|
||||
version="3.1">
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
|
||||
http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
|
||||
version="4.0">
|
||||
|
||||
<display-name>Archetype Created Web Application</display-name>
|
||||
<display-name>PR TP WEB</display-name>
|
||||
|
||||
<!-- Welcome file -->
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.jsp</welcome-file>
|
||||
</welcome-file-list>
|
||||
|
||||
<!-- Context parameters -->
|
||||
<context-param>
|
||||
<param-name>name</param-name>
|
||||
<param-value>Joe</param-value>
|
||||
@@ -16,9 +23,7 @@
|
||||
<param-value>password</param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Le code suivant n'est utile que si vous voulez
|
||||
passer des paramètres à la servlet
|
||||
sinon l'annotation est suffisante -->
|
||||
<!-- Example servlet configuration with initialization parameters -->
|
||||
<servlet>
|
||||
<servlet-name>params</servlet-name>
|
||||
<servlet-class>pr.tp.web.example.ServletAvecParam</servlet-class>
|
||||
@@ -28,4 +33,13 @@
|
||||
</init-param>
|
||||
</servlet>
|
||||
|
||||
<!-- Servlet mapping if needed -->
|
||||
<!-- Uncomment and adjust if you need to map the servlet to a specific URL pattern
|
||||
<servlet-mapping>
|
||||
<servlet-name>params</servlet-name>
|
||||
<url-pattern>/pathToServlet</url-pattern>
|
||||
</servlet-mapping>
|
||||
-->
|
||||
|
||||
|
||||
</web-app>
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
<%@ page import="java.util.Date"%>
|
||||
<html>
|
||||
<html data-theme="light">
|
||||
<head>
|
||||
<title>Hello IPR</title>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/1.0.0/css/bulma.min.css" integrity="sha512-+oEiKVGJRHutsibRYkkTIfjI0kspDtgJtkIlyPCNTCFCdhy+nSe25nvrCw7UpHPwNbdmNw9AkgGA+ptQxcjPug==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="content p-6" >
|
||||
<h1>Page de démo</h1>
|
||||
|
||||
<p>Cette page est générée par la jsp : src/main/webapp/index.jsp</p>
|
||||
@@ -15,7 +17,7 @@
|
||||
<li><a href="params">Servlet
|
||||
/pr.tp.web/src/main/java/pr/tp/web/example/ServletAvecParam.java</a> qui
|
||||
démontre la lecture de paramètres du fichier web.xml dans la console
|
||||
(cette servlet redirige sur la page /index.jsp)</li>
|
||||
(cette servlet redirige sur la page /index.jsp et affiche dans la console du serveur web)</li>
|
||||
</ul>
|
||||
|
||||
<p>Vous êtes libre de modifier ces pages ou de les effacer si vous
|
||||
@@ -26,6 +28,7 @@
|
||||
Il est
|
||||
<%=new Date()%>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<pre>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user