Dans cet article nous allons aborder les pages JSP (JavaServer Pages) et JSTL (JavaServer Pages Standard Tag Library) avec Java.
<%!
private int maVar;
private int air(int cote) {
return cote * cote;
}
%>
Date : <%=new java.util.Date() %>
<%
int maVar = 10;
for (int i = 0; i < 10; i++) {
maVar += i;
}
%>
<%-- Commentaire --%>
<%@ page import="java.io.*" %>
<%@ page contentType="text/html" %>
<%@ page isThreadSafe="false" %>
<%@ page errorPage="err.jsp"%>
<%@ page isErrorPage="true" %>
<%@ include file="Fichier.jsp/html"%>
Nom mise à jour =
Pour plus d'information :
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
...
...
...
...
La valeur n'est pas numerique
Pour plus d'information :