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 27.1
edited by Andrew Lindesay
on 2008/07/05 01:14
on 2008/07/05 01:14
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4,24 +4,22 @@ 4 4 5 5 == Example URLs == 6 6 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.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. 8 8 9 -{{code}} 10 -completeURLWithRequestHandlerKey( 9 +=== Development Mode === 10 + 11 +This is the case where the application is being developed in, for example, Eclipse; 12 + 13 +|Method|completeURLWithRequestHandlerKey( 11 11 WOApplication.application().directActionRequestHandlerKey(), 12 12 "default", 13 13 "a=b", 14 14 context().request().isSecure(), 15 15 0); 19 +|Session|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b## 20 +|No Session|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b## 16 16 17 -{{/code}} 18 - 19 -|=Session|=Deployment|=Secure|=Generated URL 20 -|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## 22 - 23 -{{code}} 24 -completeURLWithRequestHandlerKey( 22 +|Method|completeURLWithRequestHandlerKey( 25 25 "123", 26 26 WOApplication.application().directActionRequestHandlerKey(), 27 27 "default", ... ... @@ -28,68 +28,5 @@ 28 28 "a=b", 29 29 context().request().isSecure(), 30 30 0); 31 - 32 -{{/code}} 33 - 34 -|=Session|=Deployment|=Secure|=Generated URL 35 -|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## 37 - 38 -{{code}} 39 -context().componentActionURL() 40 -{{/code}} 41 - 42 -|=Session|=Deployment|=Secure|=Generated URL 43 -|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## 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( 56 - WOApplication.application().ajaxRequestHandlerKey(), 57 - context().request().isSecure()) 58 -{{/code}} 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( 66 - "default", 67 - new NSDictionary<String,Object>(new Object[] {"b"}, new String[] {"a"}), 68 - context().request().isSecure(), 69 - true); 70 -{{/code}} 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( 78 - "default", 79 - new NSDictionary<String,Object>(new Object[] {"b"}, new String[] {"a"})) 80 -{{/code}} 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( 88 - WOApplication.application().ajaxRequestHandlerKey(), 89 - "default", 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## 29 +|Session|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/123/wa/default?a=b## 30 +|No Session|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/123/wa/default?a=b##