1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| <%@ page language="java" %>
<%@ page import="net.dev.*" %>
<%@ include file="/WEB-INF/src/jspf/messagesSession.jspf" %>
<%
if (((request.getParameter ("applet")) != null) && ((request.getParameter ("applet")).equalsIgnoreCase("affichelog")))
{
try
{
if (messagesSession.size() != 0)
{
for (int i= 0; i < messagesSession.size (); i++)
{ %>
<%= messagesSession.get (i)%>
<%
}
messagesSession.clear();
}
else
{
out.println("vide");
}
}
catch (Exception ex)
{
out.println("erreure : " + ex.getMessage());
}
}
else
{
messagesSession.add("initialisation");
%><html><head><title>AfficheLog</title></head>
<body><center>
<applet code="net.dev.afficheLog" codebase="../applet"
width="100%" height="86">
<param name="page_com" value="http://localhost:8080/include/affichelog.jsp?applet=affichelog">
<p>Pour utiliser l'applet, vous devez installer et autoriser
<a href="http://java.sun.com/getjava/">Java</a></p>
</applet>
</center></body></html><%
} |