diff options
| author | Benjamin Culkin <scorpress@gmail.com> | 2024-05-21 17:52:46 -0400 |
|---|---|---|
| committer | Benjamin Culkin <scorpress@gmail.com> | 2024-05-21 17:52:46 -0400 |
| commit | 3403adc8ac690439605072f9c4dc30995abac99f (patch) | |
| tree | bf039d2cab23157aeb8721328cfb4845bc7b7958 /wotonomy-web-test/WEB-INF/classes/DirectAction.java | |
| parent | 8283e417245b26abd290f7e6fd0511869802fc82 (diff) | |
More work on getting a working example
Took a little bit, but I fixed the bindings and found the place where
they are supposed to be
Diffstat (limited to 'wotonomy-web-test/WEB-INF/classes/DirectAction.java')
| -rw-r--r-- | wotonomy-web-test/WEB-INF/classes/DirectAction.java | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/wotonomy-web-test/WEB-INF/classes/DirectAction.java b/wotonomy-web-test/WEB-INF/classes/DirectAction.java deleted file mode 100644 index f5dc851..0000000 --- a/wotonomy-web-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; - } -} |
