Question on context().request().uri()
Question on context().request().uri()
- Subject: Question on context().request().uri()
- From: Kieran Kelleher <email@hidden>
- Date: Thu, 1 Sep 2005 13:03:16 -0400
I have a question on understanding....
What is the significance/meaning/difference between
context.request().uri() and
context().componentActionURL()
When I log them in appendToResponse for a page generated from Component
Action request, I get these values.....
371583 DEBUG [WorkerThread9] (PageWrapper, appendToResponse, 168) -
aContext.request().uri() =
/cgi-bin/WebObjects/cheetah.woa/-52040/wo/24OtRDbKizRKH6C2t7xjUM/
4.0.9.1
371585 DEBUG [WorkerThread9] (PageWrapper, appendToResponse, 169) -
aContext.componentActionURL() =
/cgi-bin/WebObjects/cheetah.woa/-52040/wo/24OtRDbKizRKH6C2t7xjUM/6.0
.... and here is the context itself......
369855 DEBUG [WorkerThread9] (PageWrapper, appendToResponse, 122) -
WOComponent.context() = <er.extensions.ERXWOContext contextID=6
requestSenderID=0.9.1 elementID=0 sessionID=24OtRDbKizRKH6C2t7xjUM
request=<er.extensions.ERXRequest (<er.extensions.ERXRequest
httpVersion=HTTP/1.1 headers={remote_host = (127.0.0.1);
user-agent = (Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US;
rv:1.7.10) Gecko/20050716 Firefox/1.0.6);
keep-alive = (300);
document_root = (/Library/WebServer/Documents);
accept-charset = (ISO-8859-1,utf-8;q=0.7,*;q=0.7);
accept =
(text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/
plain;q=0.8,image/png,*/*;q=0.5);
x-webobjects-adaptor-version = ("Apache");
server_name = (127.0.0.1);
referer =
(http://127.0.0.1/cgi-bin/WebObjects/cheetah.woa/-52040/wa/page?
wosid=24OtRDbKizRKH6C2t7xjUM&page=WzdNC_ProductType);
remote_port = (60521);
remote_addr = (127.0.0.1);
x-webobjects-request-id = (43145a2300000150000000dd);
server_software = (Apache/1.3.28);
script_filename =
(/cgi-bin/WebObjects/cheetah.woa/-52040/wo/24OtRDbKizRKH6C2t7xjUM/
4.0.9.1);
x-webobjects-request-method = (GET);
accept-encoding = (gzip,deflate);
server_port = (80);
host = (127.0.0.1);
accept-language = (en-us,en;q=0.5);
connection = (close);
} content-length=0 cookies=null userInfo=null>) method=GET
uri=/cgi-bin/WebObjects/cheetah.woa/-52040/wo/24OtRDbKizRKH6C2t7xjUM/
4.0.9.1 defaultFormValueEncoding=ISO8859_1
formValueEncodingDetectionEnabled=NO formValueEncoding=ISO8859_1
formValues={} > response=<com.webobjects.appserver.WOResponse
(<com.webobjects.appserver.WOResponse httpVersion=HTTP/1.1
headers={content-type = ("text/html; charset=iso-8859-1");
} content-length=0 cookies=null userInfo=null>) status=200>
pageElement=<WzdNC_Geography name: WzdNC_Geography subcomponents: null
> pageComponent=<WzdNC_Geography name: WzdNC_Geography subcomponents:
null > currentComponent=<PageWrapper name: PageWrapper subcomponents:
null > url=/cgi-bin/WebObjects/cheetah.woa/-52040
urlApplicationNumber=-52040 distributionEnabled=false pageChanged=true
pageReplaced=false>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden