summaryrefslogtreecommitdiff
path: root/wotonomy-test
diff options
context:
space:
mode:
Diffstat (limited to 'wotonomy-test')
-rw-r--r--wotonomy-test/.gitignore2
-rw-r--r--wotonomy-test/WEB-INF/classes/Application.java14
-rw-r--r--wotonomy-test/WEB-INF/classes/DirectAction.java71
-rw-r--r--wotonomy-test/WEB-INF/classes/Main.java54
-rw-r--r--wotonomy-test/WEB-INF/classes/Main.wo/Main.html22
-rw-r--r--wotonomy-test/WEB-INF/classes/Main.wo/Main.wod22
-rw-r--r--wotonomy-test/WEB-INF/classes/OtherAction.java21
-rw-r--r--wotonomy-test/WEB-INF/classes/Session.java10
-rw-r--r--wotonomy-test/WEB-INF/web.xml17
-rw-r--r--wotonomy-test/build.xml66
-rw-r--r--wotonomy-test/pom.xml171
-rw-r--r--wotonomy-test/src/main/java/Application.java14
-rw-r--r--wotonomy-test/src/main/java/DirectAction.java71
-rw-r--r--wotonomy-test/src/main/java/Main.java54
-rw-r--r--wotonomy-test/src/main/java/Main.wo/Main.html22
-rw-r--r--wotonomy-test/src/main/java/Main.wo/Main.wod22
-rw-r--r--wotonomy-test/src/main/java/OtherAction.java21
-rw-r--r--wotonomy-test/src/main/java/Session.java10
-rw-r--r--wotonomy-test/src/main/webapp/Main.wo/Main.html22
-rw-r--r--wotonomy-test/src/main/webapp/Main.wo/Main.wod22
-rw-r--r--wotonomy-test/src/main/webapp/WEB-INF/classes/Application.java14
-rw-r--r--wotonomy-test/src/main/webapp/WEB-INF/classes/DirectAction.java71
-rw-r--r--wotonomy-test/src/main/webapp/WEB-INF/classes/Main.java54
-rw-r--r--wotonomy-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.html22
-rw-r--r--wotonomy-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.wod22
-rw-r--r--wotonomy-test/src/main/webapp/WEB-INF/classes/OtherAction.java21
-rw-r--r--wotonomy-test/src/main/webapp/WEB-INF/classes/Session.java10
-rw-r--r--wotonomy-test/src/main/webapp/WEB-INF/web.xml17
28 files changed, 0 insertions, 959 deletions
diff --git a/wotonomy-test/.gitignore b/wotonomy-test/.gitignore
deleted file mode 100644
index 0b5a49d..0000000
--- a/wotonomy-test/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-.DS_Store
-target
diff --git a/wotonomy-test/WEB-INF/classes/Application.java b/wotonomy-test/WEB-INF/classes/Application.java
deleted file mode 100644
index 815e210..0000000
--- a/wotonomy-test/WEB-INF/classes/Application.java
+++ /dev/null
@@ -1,14 +0,0 @@
-// Decompiled by Jad v1.5.8c. Copyright 2001 Pavel Kouznetsov.
-// Jad home page: http://www.geocities.com/kpdus/jad.html
-// Decompiler options: packimports(3) fieldsfirst nonlb space
-// Source File Name: Application.java
-
-import java.io.PrintStream;
-import net.wotonomy.web.WOApplication;
-
-public class Application extends WOApplication {
-
- public Application() {
- System.out.println("Application()");
- }
-}
diff --git a/wotonomy-test/WEB-INF/classes/DirectAction.java b/wotonomy-test/WEB-INF/classes/DirectAction.java
deleted file mode 100644
index f5dc851..0000000
--- a/wotonomy-test/WEB-INF/classes/DirectAction.java
+++ /dev/null
@@ -1,71 +0,0 @@
-
-import java.io.PrintStream;
-import java.util.Date;
-import net.wotonomy.foundation.NSArray;
-import net.wotonomy.foundation.NSDictionary;
-import net.wotonomy.web.*;
-
-public class DirectAction extends WODirectAction {
-
- private Date testing;
-
- public DirectAction(WORequest aRequest) {
- super(aRequest);
- testing = new Date();
- System.out.println("DirectAction()");
- }
-
- public WOActionResults defaultAction() {
- return pageWithName("Main");
- }
-
- public Object getTesting() {
- return testing;
- }
-
- public void setTesting(Date anObject) {
- testing = anObject;
- }
-
- public WOActionResults testAction() {
- System.out.println("DirectAction.testAction()");
- takeFormValuesForKeyArray(request().formValues().allKeys());
- WOResponse response = new WOResponse();
- response.appendContentString("This is really just a test.");
- response.appendContentString("<p>");
- response.appendContentString(Application.application().name());
- response.appendContentString("<p>");
- response.appendContentHTMLString("<p>");
- response.appendContentString("<p>");
- response.appendContentString(getTesting().toString());
- response.appendContentString("<p>");
- response.appendContentString(request().formValues().toString());
- response.appendContentString("<p>");
- response.appendContentString("browserLanguages: ");
- response.appendContentString(request().browserLanguages().toString());
- response.appendContentString("<p>");
- response.appendContentString("uri: ");
- response.appendContentString(request().uri().toString());
- response.appendContentString("<p>");
- response.appendContentString("adaptorPrefix: ");
- response.appendContentString(request().adaptorPrefix().toString());
- response.appendContentString("<p>");
- response.appendContentString("applicationName: ");
- response.appendContentString(request().applicationName().toString());
- response.appendContentString("<p>");
- response.appendContentString("requestHandlerKey: ");
- response.appendContentString(request().requestHandlerKey().toString());
- response.appendContentString("<p>");
- response.appendContentString("requestHandlerPath: ");
- response.appendContentString(request().requestHandlerPath().toString());
- response.appendContentString("<p>");
- response.appendContentString("requestHandlerPathArray: ");
- response.appendContentString(request().requestHandlerPathArray().toString());
- response.appendContentString("<p>");
- response.appendContentString("method: ");
- response.appendContentString(request().method().toString());
- response.appendContentString("<p>");
- response.appendContentString("content: ");
- return response;
- }
-}
diff --git a/wotonomy-test/WEB-INF/classes/Main.java b/wotonomy-test/WEB-INF/classes/Main.java
deleted file mode 100644
index a12ca44..0000000
--- a/wotonomy-test/WEB-INF/classes/Main.java
+++ /dev/null
@@ -1,54 +0,0 @@
-import net.wotonomy.foundation.NSDate;
-import net.wotonomy.web.*;
-
-public class Main extends WOComponent {
-
- private boolean showing;
- private String textFieldValue;
-
- public Main() {
- super();
- showing = true;
- }
-
- public NSDate getCurrentTime() {
- return new NSDate();
- }
-
- public boolean getShowTime() {
- return showing;
- }
- public void setShowTime(boolean value) {
- showing = value;
- }
-
- public WOActionResults submit() {
- System.out.println("Form Submitted");
- System.out.println("textfield says '" + getTextValue() + "'");
- return null;
- }
-
- public void takeValuesFromRequest(WORequest r, WOContext c) {
- System.out.println("taking values from request");
- if (r.formValueForKey("show") != null)
- setShowTime(r.formValueForKey("show").equals("true"));
- }
-
- public String getTimeLinkString() {
- return showing ? "Hide the time display" : "Show time display";
- }
-
- public void setTextValue(String value) {
- textFieldValue = value;
- }
- public String getTextValue() {
- return textFieldValue;
- }
-
- public WOComponent switchTime() {
- System.out.println("switching time display");
- setShowTime(!getShowTime());
- return this;
- }
-
-}
diff --git a/wotonomy-test/WEB-INF/classes/Main.wo/Main.html b/wotonomy-test/WEB-INF/classes/Main.wo/Main.html
deleted file mode 100644
index 6729a94..0000000
--- a/wotonomy-test/WEB-INF/classes/Main.wo/Main.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<HTML>
-<HEAD><TITLE>MyTest</TITLE></HEAD>
-<BODY>
-
-<WEBOBJECT NAME=showTime>
-The time is <WEBOBJECT NAME=time></WEBOBJECT>.
-<BR><BR>
-</WEBOBJECT>
-<WEBOBJECT NAME=timeLink></WEBOBJECT>
-
-<WEBOBJECT NAME=FORM>
-Here's a textfield: <WEBOBJECT NAME=textfield></WEBOBJECT>
-<WEBOBJECT NAME=submit></WEBOBJECT>
-</WEBOBJECT>
-
-<BR><BR>
-Here's a link to an <WEBOBJECT NAME=EXTLINK>external site</WEBOBJECT>.
-<BR>
-And here's a link to a <WEBOBJECT NAME=DIRLINK>direct action</WEBOBJECT>.
-
-</BODY>
-</HTML>
diff --git a/wotonomy-test/WEB-INF/classes/Main.wo/Main.wod b/wotonomy-test/WEB-INF/classes/Main.wo/Main.wod
deleted file mode 100644
index 16bd25e..0000000
--- a/wotonomy-test/WEB-INF/classes/Main.wo/Main.wod
+++ /dev/null
@@ -1,22 +0,0 @@
-<HTML>
-<HEAD><TITLE>MyTest</TITLE></HEAD>
-<BODY>
-
-<WEBOBJECT NAME=showTime>
-The time is <WEBOBJECT NAME=time></WEBOBJECT>.
-<BR><BR>
-</WEBOBJECT>
-<WEBOBJECT NAME=timeLink></WEBOBJECT>
-
-<WEBOBJECT NAME=FORM>
-Here's a textfield: <WEBOBJECT NAME=textfield></WEBOBJECT>
-<WEBOBJECT NAME=submit></WEBOBJECT>
-</WEBOBJECT>
-
-<BR><BR>
-Here's a link to an <WEBOBJECT NAME=EXTLINK>external site</WEBOBJECT>.
-<BR>
-And here's a link to a <WEBOBJECT NAME=DIRLINK>direct action</WEBOBJECT> (not implemented yet).
-
-</BODY>
-</HTML>
diff --git a/wotonomy-test/WEB-INF/classes/OtherAction.java b/wotonomy-test/WEB-INF/classes/OtherAction.java
deleted file mode 100644
index 00a3155..0000000
--- a/wotonomy-test/WEB-INF/classes/OtherAction.java
+++ /dev/null
@@ -1,21 +0,0 @@
-//A direct action subclass, with only one method
-//that gets called from Main.wo
-
-import net.wotonomy.foundation.*;
-import net.wotonomy.web.*;
-
-public class OtherAction extends WODirectAction {
-
- public OtherAction(WORequest r) {
- super(r);
- }
-
- public WOActionResults linkTestAction() {
- System.out.println("creating and configuring Main.wo");
- WOComponent page = pageWithName("Main");
- page.takeValueForKey(new Boolean(false), "showTime");
- page.takeValueForKey("direct action called", "textValue");
- return page;
- }
-
-}
diff --git a/wotonomy-test/WEB-INF/classes/Session.java b/wotonomy-test/WEB-INF/classes/Session.java
deleted file mode 100644
index e3e9de7..0000000
--- a/wotonomy-test/WEB-INF/classes/Session.java
+++ /dev/null
@@ -1,10 +0,0 @@
-//Empty session file
-
-import net.wotonomy.web.WOSession;
-
-public class Session extends WOSession {
-
- public Session() {
- }
-
-}
diff --git a/wotonomy-test/WEB-INF/web.xml b/wotonomy-test/WEB-INF/web.xml
deleted file mode 100644
index b505b52..0000000
--- a/wotonomy-test/WEB-INF/web.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-
-<!DOCTYPE web-app
- PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
- "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
-
-<web-app>
- <servlet>
- <servlet-name>ApplicatonServlet</servlet-name>
- <servlet-class>Application</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>ApplicatonServlet</servlet-name>
- <url-pattern>/</url-pattern>
- </servlet-mapping>
-</web-app>
diff --git a/wotonomy-test/build.xml b/wotonomy-test/build.xml
deleted file mode 100644
index 4104184..0000000
--- a/wotonomy-test/build.xml
+++ /dev/null
@@ -1,66 +0,0 @@
-<project name="wotonomy" default="all" basedir=".">
-
- <!--
- Sets the compiler property.
- Options are "classic" or "modern" or "jikes".
- -->
- <property name="build.compiler" value="modern"/>
-
- <!--
- Builds the application.
- Requires wotonomy.jar from the parent directory.
- -->
- <target name="all">
- <javac srcdir="WEB-INF/classes" destdir="WEB-INF/classes" includes="**/*.java">
- <classpath>
- <pathelement location="../wotonomy.jar" />
- <pathelement location="../lib/servlet.jar" />
- </classpath>
- </javac>
- </target>
-
- <target name="war">
- <delete file="MyTest.woa.war"/>
- <mkdir dir="WEB-INF/lib"/>
- <copy file="../wotonomy.jar" todir="WEB-INF/lib"/>
- <jar jarfile="MyTest.woa.war" basedir="."
- includes="WEB-INF"/>
- </target>
-
- <!--
- Builds an executable jar file containing
- the license file, anything in the images
- directory, and everything in net/wotonomy,
- but excludes all .java source files.
- -->
- <target name="library">
- <delete file="wotonomy.jar"/>
- <jar jarfile="wotonomy.jar" basedir="."
- manifest="manifest.txt"
- includes="license.txt,net/**,images/**,com/**,gui/**,org/**"
- excludes="**/*.java"/>
- </target>
-
- <!--
- Deletes all class files in the wotonomy
- directories, and any recognized temp files.
- -->
- <target name="clean">
- <delete dir="." includes="**/*.class,**/*.~*"/>
- </target>
-
- <!--
- Runs the test suite.
- -->
- <target name="run" depends="all">
- <java classname="net.wotonomy.test.Test" fork="yes"
- jvmargs="" args="-monitor" >
- <classpath>
- <pathelement location="." />
- <pathelement location="lib/xp.jar" />
- <pathelement location="lib/servlet.jar" />
- </classpath>
- </java>
- </target>
-
-</project>
diff --git a/wotonomy-test/pom.xml b/wotonomy-test/pom.xml
deleted file mode 100644
index c7074d6..0000000
--- a/wotonomy-test/pom.xml
+++ /dev/null
@@ -1,171 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>com.ashardalon</groupId>
- <artifactId>wotonomy-test</artifactId>
- <version>0.1-SNAPSHOT</version>
- <packaging>war</packaging>
-
- <name>Wotonomy test</name>
- <description>This is a test of the Wotonomy framework</description>
-
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.report.sourceEncoding>UTF-8</project.report.sourceEncoding>
- <maven.compiler.release>11</maven.compiler.release>
- <jakartaee-api.version>10.0.0</jakartaee-api.version>
- <compiler-plugin.version>3.11.0</compiler-plugin.version>
- <war-plugin.version>3.4.0</war-plugin.version>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>jakarta.platform</groupId>
- <artifactId>jakarta.jakartaee-api</artifactId>
- <version>${jakartaee-api.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>net.wotonomy</groupId>
- <artifactId>wotonomy-datastore</artifactId>
- <version>1.0-alpha5-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>net.wotonomy</groupId>
- <artifactId>wotonomy-foundation</artifactId>
- <version>1.0-alpha5-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>net.wotonomy</groupId>
- <artifactId>wotonomy-persistence</artifactId>
- <version>1.0-alpha5-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>net.wotonomy</groupId>
- <artifactId>wotonomy-ui</artifactId>
- <version>1.0-alpha5-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>net.wotonomy</groupId>
- <artifactId>wotonomy-web</artifactId>
- <version>1.0-alpha5-SNAPSHOT</version>
- </dependency>
- </dependencies>
-
- <build>
- <finalName>wotonomy-test</finalName>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>${compiler-plugin.version}</version>
- </plugin>
- <plugin>
- <artifactId>maven-war-plugin</artifactId>
- <version>${war-plugin.version}</version>
- <configuration>
- <failOnMissingWebXml>true</failOnMissingWebXml>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-site-plugin</artifactId>
- <version>3.7.1</version>
- <dependencies>
- <dependency>
- <groupId>org.apache.maven.wagon</groupId>
- <artifactId>wagon-webdav-jackrabbit</artifactId>
- <version>3.5.3</version>
- </dependency>
- </dependencies>
- </plugin>
-
- <plugin>
- <artifactId>maven-project-info-reports-plugin</artifactId>
- <version>3.0.0</version>
- </plugin>
-
- <plugin>
- <groupId>com.ashardalon</groupId>
- <artifactId>slim-tomcat-maven-plugin</artifactId>
- <version>1.1-SNAPSHOT</version>
- <configuration>
- <serverURL>https://blog.ashardalon.com/</serverURL>
- <serverName>ashardalon-tomcat</serverName>
- <appPath>/wotonomy</appPath>
- <update>true</update>
- </configuration>
- <executions>
- <execution>
- <phase>deploy</phase>
- <goals>
- <goal>deploy</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
-
- </plugins>
- </build>
-
- <reporting>
- <plugins>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>3.4.0</version>
- <configuration></configuration>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.22.1</version>
- </plugin>
- <plugin>
- <artifactId>maven-changes-plugin</artifactId>
- <version>2.12.1</version>
- </plugin>
- </plugins>
- </reporting>
-
- <distributionManagement>
- <site>
- <id>ashardalon-dav</id>
- <url>dav:https://ashardalon.com/projects/wotonomy-test</url>
- </site>
- <snapshotRepository>
- <id>ashardalon</id>
- <name>Ashardalon Snapshots</name>
- <url>https://repo.ashardalon.com/snapshots</url>
- </snapshotRepository>
- <repository>
- <id>ashardalon</id>
- <name>Ashardalon Releases</name>
- <url>https://repo.ashardalon.com/releases</url>
- </repository>
- </distributionManagement>
- <repositories>
- <repository>
- <id>ashardalon-forge</id>
- <name>Ashardalon Forge</name>
- <url>https://repo.ashardalon.com</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>ashardalon-forge</id>
- <name>Ashardalon Forge</name>
- <url>https://repo.ashardalon.com</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </pluginRepository>
- </pluginRepositories>
-</project>
diff --git a/wotonomy-test/src/main/java/Application.java b/wotonomy-test/src/main/java/Application.java
deleted file mode 100644
index 815e210..0000000
--- a/wotonomy-test/src/main/java/Application.java
+++ /dev/null
@@ -1,14 +0,0 @@
-// Decompiled by Jad v1.5.8c. Copyright 2001 Pavel Kouznetsov.
-// Jad home page: http://www.geocities.com/kpdus/jad.html
-// Decompiler options: packimports(3) fieldsfirst nonlb space
-// Source File Name: Application.java
-
-import java.io.PrintStream;
-import net.wotonomy.web.WOApplication;
-
-public class Application extends WOApplication {
-
- public Application() {
- System.out.println("Application()");
- }
-}
diff --git a/wotonomy-test/src/main/java/DirectAction.java b/wotonomy-test/src/main/java/DirectAction.java
deleted file mode 100644
index f5dc851..0000000
--- a/wotonomy-test/src/main/java/DirectAction.java
+++ /dev/null
@@ -1,71 +0,0 @@
-
-import java.io.PrintStream;
-import java.util.Date;
-import net.wotonomy.foundation.NSArray;
-import net.wotonomy.foundation.NSDictionary;
-import net.wotonomy.web.*;
-
-public class DirectAction extends WODirectAction {
-
- private Date testing;
-
- public DirectAction(WORequest aRequest) {
- super(aRequest);
- testing = new Date();
- System.out.println("DirectAction()");
- }
-
- public WOActionResults defaultAction() {
- return pageWithName("Main");
- }
-
- public Object getTesting() {
- return testing;
- }
-
- public void setTesting(Date anObject) {
- testing = anObject;
- }
-
- public WOActionResults testAction() {
- System.out.println("DirectAction.testAction()");
- takeFormValuesForKeyArray(request().formValues().allKeys());
- WOResponse response = new WOResponse();
- response.appendContentString("This is really just a test.");
- response.appendContentString("<p>");
- response.appendContentString(Application.application().name());
- response.appendContentString("<p>");
- response.appendContentHTMLString("<p>");
- response.appendContentString("<p>");
- response.appendContentString(getTesting().toString());
- response.appendContentString("<p>");
- response.appendContentString(request().formValues().toString());
- response.appendContentString("<p>");
- response.appendContentString("browserLanguages: ");
- response.appendContentString(request().browserLanguages().toString());
- response.appendContentString("<p>");
- response.appendContentString("uri: ");
- response.appendContentString(request().uri().toString());
- response.appendContentString("<p>");
- response.appendContentString("adaptorPrefix: ");
- response.appendContentString(request().adaptorPrefix().toString());
- response.appendContentString("<p>");
- response.appendContentString("applicationName: ");
- response.appendContentString(request().applicationName().toString());
- response.appendContentString("<p>");
- response.appendContentString("requestHandlerKey: ");
- response.appendContentString(request().requestHandlerKey().toString());
- response.appendContentString("<p>");
- response.appendContentString("requestHandlerPath: ");
- response.appendContentString(request().requestHandlerPath().toString());
- response.appendContentString("<p>");
- response.appendContentString("requestHandlerPathArray: ");
- response.appendContentString(request().requestHandlerPathArray().toString());
- response.appendContentString("<p>");
- response.appendContentString("method: ");
- response.appendContentString(request().method().toString());
- response.appendContentString("<p>");
- response.appendContentString("content: ");
- return response;
- }
-}
diff --git a/wotonomy-test/src/main/java/Main.java b/wotonomy-test/src/main/java/Main.java
deleted file mode 100644
index a12ca44..0000000
--- a/wotonomy-test/src/main/java/Main.java
+++ /dev/null
@@ -1,54 +0,0 @@
-import net.wotonomy.foundation.NSDate;
-import net.wotonomy.web.*;
-
-public class Main extends WOComponent {
-
- private boolean showing;
- private String textFieldValue;
-
- public Main() {
- super();
- showing = true;
- }
-
- public NSDate getCurrentTime() {
- return new NSDate();
- }
-
- public boolean getShowTime() {
- return showing;
- }
- public void setShowTime(boolean value) {
- showing = value;
- }
-
- public WOActionResults submit() {
- System.out.println("Form Submitted");
- System.out.println("textfield says '" + getTextValue() + "'");
- return null;
- }
-
- public void takeValuesFromRequest(WORequest r, WOContext c) {
- System.out.println("taking values from request");
- if (r.formValueForKey("show") != null)
- setShowTime(r.formValueForKey("show").equals("true"));
- }
-
- public String getTimeLinkString() {
- return showing ? "Hide the time display" : "Show time display";
- }
-
- public void setTextValue(String value) {
- textFieldValue = value;
- }
- public String getTextValue() {
- return textFieldValue;
- }
-
- public WOComponent switchTime() {
- System.out.println("switching time display");
- setShowTime(!getShowTime());
- return this;
- }
-
-}
diff --git a/wotonomy-test/src/main/java/Main.wo/Main.html b/wotonomy-test/src/main/java/Main.wo/Main.html
deleted file mode 100644
index 6729a94..0000000
--- a/wotonomy-test/src/main/java/Main.wo/Main.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<HTML>
-<HEAD><TITLE>MyTest</TITLE></HEAD>
-<BODY>
-
-<WEBOBJECT NAME=showTime>
-The time is <WEBOBJECT NAME=time></WEBOBJECT>.
-<BR><BR>
-</WEBOBJECT>
-<WEBOBJECT NAME=timeLink></WEBOBJECT>
-
-<WEBOBJECT NAME=FORM>
-Here's a textfield: <WEBOBJECT NAME=textfield></WEBOBJECT>
-<WEBOBJECT NAME=submit></WEBOBJECT>
-</WEBOBJECT>
-
-<BR><BR>
-Here's a link to an <WEBOBJECT NAME=EXTLINK>external site</WEBOBJECT>.
-<BR>
-And here's a link to a <WEBOBJECT NAME=DIRLINK>direct action</WEBOBJECT>.
-
-</BODY>
-</HTML>
diff --git a/wotonomy-test/src/main/java/Main.wo/Main.wod b/wotonomy-test/src/main/java/Main.wo/Main.wod
deleted file mode 100644
index 16bd25e..0000000
--- a/wotonomy-test/src/main/java/Main.wo/Main.wod
+++ /dev/null
@@ -1,22 +0,0 @@
-<HTML>
-<HEAD><TITLE>MyTest</TITLE></HEAD>
-<BODY>
-
-<WEBOBJECT NAME=showTime>
-The time is <WEBOBJECT NAME=time></WEBOBJECT>.
-<BR><BR>
-</WEBOBJECT>
-<WEBOBJECT NAME=timeLink></WEBOBJECT>
-
-<WEBOBJECT NAME=FORM>
-Here's a textfield: <WEBOBJECT NAME=textfield></WEBOBJECT>
-<WEBOBJECT NAME=submit></WEBOBJECT>
-</WEBOBJECT>
-
-<BR><BR>
-Here's a link to an <WEBOBJECT NAME=EXTLINK>external site</WEBOBJECT>.
-<BR>
-And here's a link to a <WEBOBJECT NAME=DIRLINK>direct action</WEBOBJECT> (not implemented yet).
-
-</BODY>
-</HTML>
diff --git a/wotonomy-test/src/main/java/OtherAction.java b/wotonomy-test/src/main/java/OtherAction.java
deleted file mode 100644
index 00a3155..0000000
--- a/wotonomy-test/src/main/java/OtherAction.java
+++ /dev/null
@@ -1,21 +0,0 @@
-//A direct action subclass, with only one method
-//that gets called from Main.wo
-
-import net.wotonomy.foundation.*;
-import net.wotonomy.web.*;
-
-public class OtherAction extends WODirectAction {
-
- public OtherAction(WORequest r) {
- super(r);
- }
-
- public WOActionResults linkTestAction() {
- System.out.println("creating and configuring Main.wo");
- WOComponent page = pageWithName("Main");
- page.takeValueForKey(new Boolean(false), "showTime");
- page.takeValueForKey("direct action called", "textValue");
- return page;
- }
-
-}
diff --git a/wotonomy-test/src/main/java/Session.java b/wotonomy-test/src/main/java/Session.java
deleted file mode 100644
index e3e9de7..0000000
--- a/wotonomy-test/src/main/java/Session.java
+++ /dev/null
@@ -1,10 +0,0 @@
-//Empty session file
-
-import net.wotonomy.web.WOSession;
-
-public class Session extends WOSession {
-
- public Session() {
- }
-
-}
diff --git a/wotonomy-test/src/main/webapp/Main.wo/Main.html b/wotonomy-test/src/main/webapp/Main.wo/Main.html
deleted file mode 100644
index 6729a94..0000000
--- a/wotonomy-test/src/main/webapp/Main.wo/Main.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<HTML>
-<HEAD><TITLE>MyTest</TITLE></HEAD>
-<BODY>
-
-<WEBOBJECT NAME=showTime>
-The time is <WEBOBJECT NAME=time></WEBOBJECT>.
-<BR><BR>
-</WEBOBJECT>
-<WEBOBJECT NAME=timeLink></WEBOBJECT>
-
-<WEBOBJECT NAME=FORM>
-Here's a textfield: <WEBOBJECT NAME=textfield></WEBOBJECT>
-<WEBOBJECT NAME=submit></WEBOBJECT>
-</WEBOBJECT>
-
-<BR><BR>
-Here's a link to an <WEBOBJECT NAME=EXTLINK>external site</WEBOBJECT>.
-<BR>
-And here's a link to a <WEBOBJECT NAME=DIRLINK>direct action</WEBOBJECT>.
-
-</BODY>
-</HTML>
diff --git a/wotonomy-test/src/main/webapp/Main.wo/Main.wod b/wotonomy-test/src/main/webapp/Main.wo/Main.wod
deleted file mode 100644
index 16bd25e..0000000
--- a/wotonomy-test/src/main/webapp/Main.wo/Main.wod
+++ /dev/null
@@ -1,22 +0,0 @@
-<HTML>
-<HEAD><TITLE>MyTest</TITLE></HEAD>
-<BODY>
-
-<WEBOBJECT NAME=showTime>
-The time is <WEBOBJECT NAME=time></WEBOBJECT>.
-<BR><BR>
-</WEBOBJECT>
-<WEBOBJECT NAME=timeLink></WEBOBJECT>
-
-<WEBOBJECT NAME=FORM>
-Here's a textfield: <WEBOBJECT NAME=textfield></WEBOBJECT>
-<WEBOBJECT NAME=submit></WEBOBJECT>
-</WEBOBJECT>
-
-<BR><BR>
-Here's a link to an <WEBOBJECT NAME=EXTLINK>external site</WEBOBJECT>.
-<BR>
-And here's a link to a <WEBOBJECT NAME=DIRLINK>direct action</WEBOBJECT> (not implemented yet).
-
-</BODY>
-</HTML>
diff --git a/wotonomy-test/src/main/webapp/WEB-INF/classes/Application.java b/wotonomy-test/src/main/webapp/WEB-INF/classes/Application.java
deleted file mode 100644
index 815e210..0000000
--- a/wotonomy-test/src/main/webapp/WEB-INF/classes/Application.java
+++ /dev/null
@@ -1,14 +0,0 @@
-// Decompiled by Jad v1.5.8c. Copyright 2001 Pavel Kouznetsov.
-// Jad home page: http://www.geocities.com/kpdus/jad.html
-// Decompiler options: packimports(3) fieldsfirst nonlb space
-// Source File Name: Application.java
-
-import java.io.PrintStream;
-import net.wotonomy.web.WOApplication;
-
-public class Application extends WOApplication {
-
- public Application() {
- System.out.println("Application()");
- }
-}
diff --git a/wotonomy-test/src/main/webapp/WEB-INF/classes/DirectAction.java b/wotonomy-test/src/main/webapp/WEB-INF/classes/DirectAction.java
deleted file mode 100644
index f5dc851..0000000
--- a/wotonomy-test/src/main/webapp/WEB-INF/classes/DirectAction.java
+++ /dev/null
@@ -1,71 +0,0 @@
-
-import java.io.PrintStream;
-import java.util.Date;
-import net.wotonomy.foundation.NSArray;
-import net.wotonomy.foundation.NSDictionary;
-import net.wotonomy.web.*;
-
-public class DirectAction extends WODirectAction {
-
- private Date testing;
-
- public DirectAction(WORequest aRequest) {
- super(aRequest);
- testing = new Date();
- System.out.println("DirectAction()");
- }
-
- public WOActionResults defaultAction() {
- return pageWithName("Main");
- }
-
- public Object getTesting() {
- return testing;
- }
-
- public void setTesting(Date anObject) {
- testing = anObject;
- }
-
- public WOActionResults testAction() {
- System.out.println("DirectAction.testAction()");
- takeFormValuesForKeyArray(request().formValues().allKeys());
- WOResponse response = new WOResponse();
- response.appendContentString("This is really just a test.");
- response.appendContentString("<p>");
- response.appendContentString(Application.application().name());
- response.appendContentString("<p>");
- response.appendContentHTMLString("<p>");
- response.appendContentString("<p>");
- response.appendContentString(getTesting().toString());
- response.appendContentString("<p>");
- response.appendContentString(request().formValues().toString());
- response.appendContentString("<p>");
- response.appendContentString("browserLanguages: ");
- response.appendContentString(request().browserLanguages().toString());
- response.appendContentString("<p>");
- response.appendContentString("uri: ");
- response.appendContentString(request().uri().toString());
- response.appendContentString("<p>");
- response.appendContentString("adaptorPrefix: ");
- response.appendContentString(request().adaptorPrefix().toString());
- response.appendContentString("<p>");
- response.appendContentString("applicationName: ");
- response.appendContentString(request().applicationName().toString());
- response.appendContentString("<p>");
- response.appendContentString("requestHandlerKey: ");
- response.appendContentString(request().requestHandlerKey().toString());
- response.appendContentString("<p>");
- response.appendContentString("requestHandlerPath: ");
- response.appendContentString(request().requestHandlerPath().toString());
- response.appendContentString("<p>");
- response.appendContentString("requestHandlerPathArray: ");
- response.appendContentString(request().requestHandlerPathArray().toString());
- response.appendContentString("<p>");
- response.appendContentString("method: ");
- response.appendContentString(request().method().toString());
- response.appendContentString("<p>");
- response.appendContentString("content: ");
- return response;
- }
-}
diff --git a/wotonomy-test/src/main/webapp/WEB-INF/classes/Main.java b/wotonomy-test/src/main/webapp/WEB-INF/classes/Main.java
deleted file mode 100644
index a12ca44..0000000
--- a/wotonomy-test/src/main/webapp/WEB-INF/classes/Main.java
+++ /dev/null
@@ -1,54 +0,0 @@
-import net.wotonomy.foundation.NSDate;
-import net.wotonomy.web.*;
-
-public class Main extends WOComponent {
-
- private boolean showing;
- private String textFieldValue;
-
- public Main() {
- super();
- showing = true;
- }
-
- public NSDate getCurrentTime() {
- return new NSDate();
- }
-
- public boolean getShowTime() {
- return showing;
- }
- public void setShowTime(boolean value) {
- showing = value;
- }
-
- public WOActionResults submit() {
- System.out.println("Form Submitted");
- System.out.println("textfield says '" + getTextValue() + "'");
- return null;
- }
-
- public void takeValuesFromRequest(WORequest r, WOContext c) {
- System.out.println("taking values from request");
- if (r.formValueForKey("show") != null)
- setShowTime(r.formValueForKey("show").equals("true"));
- }
-
- public String getTimeLinkString() {
- return showing ? "Hide the time display" : "Show time display";
- }
-
- public void setTextValue(String value) {
- textFieldValue = value;
- }
- public String getTextValue() {
- return textFieldValue;
- }
-
- public WOComponent switchTime() {
- System.out.println("switching time display");
- setShowTime(!getShowTime());
- return this;
- }
-
-}
diff --git a/wotonomy-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.html b/wotonomy-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.html
deleted file mode 100644
index 6729a94..0000000
--- a/wotonomy-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<HTML>
-<HEAD><TITLE>MyTest</TITLE></HEAD>
-<BODY>
-
-<WEBOBJECT NAME=showTime>
-The time is <WEBOBJECT NAME=time></WEBOBJECT>.
-<BR><BR>
-</WEBOBJECT>
-<WEBOBJECT NAME=timeLink></WEBOBJECT>
-
-<WEBOBJECT NAME=FORM>
-Here's a textfield: <WEBOBJECT NAME=textfield></WEBOBJECT>
-<WEBOBJECT NAME=submit></WEBOBJECT>
-</WEBOBJECT>
-
-<BR><BR>
-Here's a link to an <WEBOBJECT NAME=EXTLINK>external site</WEBOBJECT>.
-<BR>
-And here's a link to a <WEBOBJECT NAME=DIRLINK>direct action</WEBOBJECT>.
-
-</BODY>
-</HTML>
diff --git a/wotonomy-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.wod b/wotonomy-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.wod
deleted file mode 100644
index 16bd25e..0000000
--- a/wotonomy-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.wod
+++ /dev/null
@@ -1,22 +0,0 @@
-<HTML>
-<HEAD><TITLE>MyTest</TITLE></HEAD>
-<BODY>
-
-<WEBOBJECT NAME=showTime>
-The time is <WEBOBJECT NAME=time></WEBOBJECT>.
-<BR><BR>
-</WEBOBJECT>
-<WEBOBJECT NAME=timeLink></WEBOBJECT>
-
-<WEBOBJECT NAME=FORM>
-Here's a textfield: <WEBOBJECT NAME=textfield></WEBOBJECT>
-<WEBOBJECT NAME=submit></WEBOBJECT>
-</WEBOBJECT>
-
-<BR><BR>
-Here's a link to an <WEBOBJECT NAME=EXTLINK>external site</WEBOBJECT>.
-<BR>
-And here's a link to a <WEBOBJECT NAME=DIRLINK>direct action</WEBOBJECT> (not implemented yet).
-
-</BODY>
-</HTML>
diff --git a/wotonomy-test/src/main/webapp/WEB-INF/classes/OtherAction.java b/wotonomy-test/src/main/webapp/WEB-INF/classes/OtherAction.java
deleted file mode 100644
index 00a3155..0000000
--- a/wotonomy-test/src/main/webapp/WEB-INF/classes/OtherAction.java
+++ /dev/null
@@ -1,21 +0,0 @@
-//A direct action subclass, with only one method
-//that gets called from Main.wo
-
-import net.wotonomy.foundation.*;
-import net.wotonomy.web.*;
-
-public class OtherAction extends WODirectAction {
-
- public OtherAction(WORequest r) {
- super(r);
- }
-
- public WOActionResults linkTestAction() {
- System.out.println("creating and configuring Main.wo");
- WOComponent page = pageWithName("Main");
- page.takeValueForKey(new Boolean(false), "showTime");
- page.takeValueForKey("direct action called", "textValue");
- return page;
- }
-
-}
diff --git a/wotonomy-test/src/main/webapp/WEB-INF/classes/Session.java b/wotonomy-test/src/main/webapp/WEB-INF/classes/Session.java
deleted file mode 100644
index e3e9de7..0000000
--- a/wotonomy-test/src/main/webapp/WEB-INF/classes/Session.java
+++ /dev/null
@@ -1,10 +0,0 @@
-//Empty session file
-
-import net.wotonomy.web.WOSession;
-
-public class Session extends WOSession {
-
- public Session() {
- }
-
-}
diff --git a/wotonomy-test/src/main/webapp/WEB-INF/web.xml b/wotonomy-test/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index b505b52..0000000
--- a/wotonomy-test/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-
-<!DOCTYPE web-app
- PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
- "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
-
-<web-app>
- <servlet>
- <servlet-name>ApplicatonServlet</servlet-name>
- <servlet-class>Application</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>ApplicatonServlet</servlet-name>
- <url-pattern>/</url-pattern>
- </servlet-mapping>
-</web-app>