Grosse MàJ
This commit is contained in:
Binary file not shown.
@ -0,0 +1,14 @@
|
||||
package jsp2;
|
||||
|
||||
import javax.servlet.jsp.JspException;
|
||||
import javax.servlet.jsp.tagext.SimpleTagSupport;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* * SimpleTag handler that prints "Hello, world!"
|
||||
* */
|
||||
public class bonjour extends SimpleTagSupport {
|
||||
public void doTag() throws JspException, IOException {
|
||||
getJspContext().getOut().write( "Bonjour !" );
|
||||
}
|
||||
}
|
20
P51/apache-tomcat-6.0.14/webapps/blankoworld/bonjour.jsp
Normal file
20
P51/apache-tomcat-6.0.14/webapps/blankoworld/bonjour.jsp
Normal file
@ -0,0 +1,20 @@
|
||||
<%@ taglib prefix="balise" uri="librairie.tld" %>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="contenu_principal">
|
||||
<div id="tete"> <h1>Notre outil applicatif</h1></div>
|
||||
<div id="menu">
|
||||
<ul id="Tests">
|
||||
<li><a href="/bonjour.jsp">Bonjour tout le monde</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="contenu_secondaire">
|
||||
<balise:bonjour/>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
18
P51/apache-tomcat-6.0.14/webapps/blankoworld/index.html
Normal file
18
P51/apache-tomcat-6.0.14/webapps/blankoworld/index.html
Normal file
@ -0,0 +1,18 @@
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="contenu_principal">
|
||||
<div id="tete"> <h1>Notre outil applicatif</h1></div>
|
||||
<div id="menu">
|
||||
<ul id="Tests">
|
||||
<li><a href="../">Accueil</a></li>
|
||||
<li><a href="./">Accueil Blankoworld</a></li>
|
||||
<li><a href="./bonjour.jsp">Bonjour tout le monde</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="contenu_secondaire">Contenu secondaire : texte.</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
14
P51/apache-tomcat-6.0.14/webapps/blankoworld/librairie.tld
Normal file
14
P51/apache-tomcat-6.0.14/webapps/blankoworld/librairie.tld
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" version="2.0">
|
||||
<description>Description de ma libraire de balises simples.</description>
|
||||
<tlib-version>1.0</tlib-version>
|
||||
<short-name>LibrairieDeBase</short-name>
|
||||
<uri>/SimpleTagLibrary</uri>
|
||||
<tag>
|
||||
<description>Sortie Bonjour</description>
|
||||
<name>bonjour</name>
|
||||
<tag-class>jsp2.bonjour</tag-class>
|
||||
<body-content>empty</body-content>
|
||||
</tag>
|
||||
</taglib>
|
Reference in New Issue
Block a user