summaryrefslogtreecommitdiff
path: root/wotonomy-test/src/main/webapp/WEB-INF/classes/OtherAction.java
diff options
context:
space:
mode:
Diffstat (limited to 'wotonomy-test/src/main/webapp/WEB-INF/classes/OtherAction.java')
-rw-r--r--wotonomy-test/src/main/webapp/WEB-INF/classes/OtherAction.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/wotonomy-test/src/main/webapp/WEB-INF/classes/OtherAction.java b/wotonomy-test/src/main/webapp/WEB-INF/classes/OtherAction.java
new file mode 100644
index 0000000..00a3155
--- /dev/null
+++ b/wotonomy-test/src/main/webapp/WEB-INF/classes/OtherAction.java
@@ -0,0 +1,21 @@
+//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;
+ }
+
+}