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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ page import ="jade.wrapper.StaleProxyException"%>
<%@ page import ="jade.core.Runtime"%>
<%@ page import =" jade.core.Profile"%>
<%@ page import =" jade.core.ProfileImpl"%>
<%@ page import ="jade.wrapper.*"%>
<%@ page import ="java.io.*"%>
<%@ page import ="java.lang.Object"%>
<%@ page import ="java.awt.event.WindowListener"%>
<%@ page import ="java.awt.event.WindowEvent"%>
<%@ page import ="java.lang.NullPointerException"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>
Acceuil RICMA
</title>
</head>
<body>
<h2>
Bienvenu à M.S.E:
</h2>
<p>
<APPLET code="Applet3"
CODEBASE="."
WIDTH="500" HEIGHT="500">
</APPLET>
<%
try {
jade.core.Runtime rt = jade.core.Runtime.instance();
Profile p = new ProfileImpl(false);
AgentContainer ac = rt.createAgentContainer(p);
Object l_Arg[] = new Object[2];
l_Arg[0] = "Arg1";
l_Arg[1] = "Arg2";
//String nom="";
AgentController myAgent1 = ac.createNewAgent("EE",Agent.AgentInterface.class.getName(),l_Arg);
myAgent1.start(); //theap.start();
}
// catch (Exception e)
catch (Exception ex){ // fin du try
ex.printStackTrace();
}
%>
</p>
</body>
</html> |
Partager