Changes for page Development-UrlCreation
Last modified by Pascal Robert on 2010/09/12 00:56
From version 23.1
edited by Andrew Lindesay
on 2008/07/05 01:37
on 2008/07/05 01:37
Change comment:
There is no comment for this version
To version 25.1
edited by Andrew Lindesay
on 2008/07/05 01:32
on 2008/07/05 01:32
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -6,6 +6,10 @@ 6 6 7 7 The ##WOContext## has a number of methods on itself to generate URLs back into the application server. Here the author has tested the generation of those URLs so it can be seen what is created by each method under different usages. These examples have been produced with WebObjects 5.4. 8 8 9 +=== Development Mode === 10 + 11 +This is the case where the application is being developed in, for example, Eclipse; 12 + 9 9 {{code}} 10 10 completeURLWithRequestHandlerKey( 11 11 WOApplication.application().directActionRequestHandlerKey(), ... ... @@ -16,9 +16,9 @@ 16 16 17 17 {{/code}} 18 18 19 -|=Session|=Deployment|= Secure|=GeneratedURL20 -|Y|Dev| N|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b##21 -|N|Dev| N|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b##23 +|=Session|=Deployment|=URL 24 +|Y|Dev|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b## 25 +|N|Dev|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b## 22 22 23 23 {{code}} 24 24 completeURLWithRequestHandlerKey( ... ... @@ -31,65 +31,41 @@ 31 31 32 32 {{/code}} 33 33 34 -|=Session|=Deployment|= Secure|=GeneratedURL35 -|Y|Dev| N|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/123/wa/default?a=b##36 -|N|Dev| N|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/123/wa/default?a=b##38 +|=Session|=Deployment|=URL 39 +|Y|Dev|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/123/wa/default?a=b## 40 +|N|Dev|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/123/wa/default?a=b## 37 37 38 - {{code}}39 - context().componentActionURL()40 - {{/code}}42 +|Method|context().componentActionURL() 43 +|Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/wo/V4N99Ub2Zjavh6V3tvcEQM/0.15## 44 +|No Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/wo/zBXy58rwSW6aU1mTXVk9uw/0.11## 41 41 42 -| =Session|=Deployment|=Secure|=Generated URL43 -| Y|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/wo/V4N99Ub2Zjavh6V3tvcEQM/0.15##44 -|N |Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/wo/zBXy58rwSW6aU1mTXVk9uw/0.11##46 +|Method|componentActionURL(WOApplication.application().ajaxRequestHandlerKey()) 47 +|Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/V4N99Ub2Zjavh6V3tvcEQM/0.11## 48 +|No Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/zBXy58rwSW6aU1mTXVk9uw/0.13## 45 45 46 -{{code}} 47 -componentActionURL(WOApplication.application().ajaxRequestHandlerKey()) 48 -{{/code}} 49 - 50 -|=Session|=Deployment|=Secure|=Generated URL 51 -|Y|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/V4N99Ub2Zjavh6V3tvcEQM/0.11## 52 -|N|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/zBXy58rwSW6aU1mTXVk9uw/0.13## 53 - 54 -{{code}} 55 -componentActionURL( 50 +|Method|componentActionURL( 56 56 WOApplication.application().ajaxRequestHandlerKey(), 57 57 context().request().isSecure()) 58 -{{/code}} 53 +|Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/V4N99Ub2Zjavh6V3tvcEQM/0.13## 54 +|No Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/zBXy58rwSW6aU1mTXVk9uw/0.15## 59 59 60 -|=Session|=Deployment|=Secure|=Generated URL 61 -|Y|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/V4N99Ub2Zjavh6V3tvcEQM/0.13## 62 -|N|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/zBXy58rwSW6aU1mTXVk9uw/0.15## 63 - 64 -{{code}} 65 -directActionURLForActionNamed( 56 +|Method|directActionURLForActionNamed( 66 66 "default", 67 - new NSDictionary<String,Object>(new Object[] {"b"}, new String[] {"a"}), 58 + new NSDictionary<String,Object>(new Object[[]] {"b"}, new String[[]] {"a"}), 68 68 context().request().isSecure(), 69 69 true); 70 -{{/code}} 61 +|Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b&wosid=V4N99Ub2Zjavh6V3tvcEQM## 62 +|No Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b## 71 71 72 -|=Session|=Deployment|=Secure|=Generated URL 73 -|Y|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b&wosid=V4N99Ub2Zjavh6V3tvcEQM## 74 -|N|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b## 75 - 76 -{{code}} 77 -directActionURLForActionNamed( 64 +|Method|directActionURLForActionNamed( 78 78 "default", 79 - new NSDictionary<String,Object>(new Object[] {"b"}, new String[] {"a"})) 80 -{{/code}} 66 + new NSDictionary<String,Object>(new Object[[]] {"b"}, new String[[]] {"a"})) 67 +|Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b&wosid=V4N99Ub2Zjavh6V3tvcEQM## 68 +|No Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b## 81 81 82 -|=Session|=Deployment|=Secure|=Generated URL 83 -|Y|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b&wosid=V4N99Ub2Zjavh6V3tvcEQM## 84 -|N|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b## 85 - 86 -{{code}} 87 -urlWithRequestHandlerKey( 70 +|Method|urlWithRequestHandlerKey( 88 88 WOApplication.application().ajaxRequestHandlerKey(), 89 89 "default", 90 90 "a=b") 91 -{{/code}} 92 - 93 -|=Session|=Deployment|=Secure|=Generated URL 94 -|Y|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/default?a=b## 95 -|N|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/default?a=b## 74 +|Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/default?a=b## 75 +|No Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/default?a=b##