[gee-cvs] gabel/website/jsp applet.jsp,1.3,1.4
Status: Alpha
Brought to you by:
alllee
|
From: Allen L. <al...@us...> - 2006-08-14 18:30:15
|
Update of /cvsroot/gabel/gabel/website/jsp In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv27365/website/jsp Modified Files: applet.jsp Log Message: * Fixing SubjectView size issues in bunnified forager * special instructions are now looked up via http URL instead of in the classpath. * minor hygiene Index: applet.jsp =================================================================== RCS file: /cvsroot/gabel/gabel/website/jsp/applet.jsp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** applet.jsp 4 Jul 2006 22:37:50 -0000 1.3 --- applet.jsp 14 Aug 2006 18:30:05 -0000 1.4 *************** *** 11,14 **** --- 11,20 ---- <%@ page import='java.rmi.Naming' %> + <%! + final String DEFAULT_HOST_NAME = "groups.psych.indiana.edu"; + String experimentServer = DEFAULT_HOST_NAME; + String experimentPort = "4301"; + %> + <% // 1. process incoming form input and save it to a file (name, age). Verify *************** *** 49,58 **** // Connect to the KNS server, find the first available forager server, and // connect them to it! ! final String HOST_NAME = "groups.psych.indiana.edu"; ! // final String HOST_NAME = "localhost"; final String KNS_PORT = "4100"; ! final String KNS_SERVER = "rmi://" + HOST_NAME + ":" + KNS_PORT + "/kns"; ! String experimentServer = HOST_NAME; ! String experimentPort = "4301"; try { RmiServer server = (RmiServer) Naming.lookup(KNS_SERVER); --- 55,61 ---- // Connect to the KNS server, find the first available forager server, and // connect them to it! ! // final String DEFAULT_HOST_NAME = "localhost"; final String KNS_PORT = "4100"; ! final String KNS_SERVER = "rmi://" + DEFAULT_HOST_NAME + ":" + KNS_PORT + "/kns"; try { RmiServer server = (RmiServer) Naming.lookup(KNS_SERVER); *************** *** 73,83 **** out.println("<pre><font color='red'>" + exception + "</font></pre>"); } - out.println("<center>"); - out.println("<applet code='net.sf.gabel.forager.client.ForagerApplet' width=900 height=700 archive='forager-client.jar'>"); - out.println("<param name='experiment-hostname' value='" + experimentServer +" ' />"); - out.println("<param name='experiment-port' value='" + experimentPort + "'/>"); - out.println("</applet>"); - out.println("</center>"); - out.println("</body></html>"); } %> --- 76,87 ---- out.println("<pre><font color='red'>" + exception + "</font></pre>"); } } %> + <center> + <applet code='net.sf.gabel.forager.client.ForagerApplet' width=911 height=922 archive='forager-client.jar'> + <param name='experiment-hostname' value='groups.psych.indiana.edu'/> + <param name='experiment-port' value='4101'/> + </applet> + </center> + </body> + </html> |