Update of /cvsroot/aimmath/AIM/WEB-INF/java
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6326/java
Modified Files:
Tag: aim-xml
Alice.java
Added Files:
Tag: aim-xml
PipedAlice.java
Log Message:
--- NEW FILE: PipedAlice.java ---
/*
* @(#)$Id: PipedAlice.java,v 1.1.2.1 2005/04/25 22:36:35 npstrick Exp $
*
* Copyright (C) 2003 Neil Strickland
* Distributed without warranty under the GPL - see README for details
*
* This is the main servlet for the AIM system.
*
*
* The home page for any AIM installation contains a form like this
*
* <form method="post" action="servlets/Alice">...</form>
*
* The web pages created dynamically by the system also contain similar
* forms. Whenever such a form is submitted, the 'doPost' method of this
* servlet is invoked to process the form. The data entered in the form
* by the user are passed to the servlet in the 'request' argument of the
* 'doPost' method. For example, if the form contains an element like
*
[...1501 lines suppressed...]
"<th align='left'>Process</th>" +
"<th align='left'>Start time</th>" +
"<th align='left'>Time taken</th>" +
"<th align='left'>Student ID</th>" +
"<th align='left'>Command</th>" +
"<th align='left'>Subject</th>" +
"<th align='left'>Quiz</th>" +
"<th align='left'>Status</th>" +
"</tr>" +
s +
"</table>\r\n";
return(s);
}
}
// Local Variables:
// c-basic-offset: 2
// compile-command: "compile.bat"
// End:
Index: Alice.java
===================================================================
RCS file: /cvsroot/aimmath/AIM/WEB-INF/java/Alice.java,v
retrieving revision 1.8.4.4
retrieving revision 1.8.4.5
diff -C2 -d -r1.8.4.4 -r1.8.4.5
*** Alice.java 21 Apr 2005 10:09:09 -0000 1.8.4.4
--- Alice.java 25 Apr 2005 22:36:34 -0000 1.8.4.5
***************
*** 1,94 ****
- /*
- * @(#)$Id$
- *
- * Copyright (C) 2003 Neil Strickland
- * Distributed without warranty under the GPL - see README for details
- *
- * This is the main servlet for the AIM system.
- *
- *
- * The home page for any AIM installation contains a form like this
[...1026 lines suppressed...]
+ return argsarray;
+ }
+
+ public String toString() {
+ StringBuffer s;
+ Enumeration argsenum;
+ s = new StringBuffer();
+ argsenum = args.elements();
+ while (argsenum.hasMoreElements()) {
+ s.append(Alice.quote((String) argsenum.nextElement()));
+ if (argsenum.hasMoreElements()) {
+ s.append(",");
+ }
+ }
+ return(s.toString());
+ }
+ }
+
// Local Variables:
// c-basic-offset: 2
|