Re: Backtracking - That Age Old Problem [SOLVED]
Re: Backtracking - That Age Old Problem [SOLVED]
- Subject: Re: Backtracking - That Age Old Problem [SOLVED]
- From: "Jonathan Fleming" <email@hidden>
- Date: Mon, 11 Aug 2003 10:49:59 +0100
From: Colin Clark <email@hidden>
To: Jonathan Fleming <email@hidden>
CC: email@hidden
Subject: Re: Backtracking - That Age Old Problem
Date: Sun, 10 Aug 2003 13:41:35 -0400
Hi Jonathan,
Try queryString() as defined on the WORequest class. It will return you
the query string portion of a request URL (everything after the question
mark) which consists of exactly what you're looking for: the form values
and keys.
http://developer.apple.com/documentation/WebObjects/Reference/API/com/
webobjects/appserver/WORequest.html#queryString()
So, if you're in a WOComponent, just call
context().request().queryString() and do whatever you want with the URL
fragment returned.
This is exactly what I was looking for, now I can backtrack using the
hyperlink href option with no problem. This also showed me how to use the
uri method in WORequest which is even better.
Why did something so simple turn out to be so hard to find an answer for?
That's WebObjects I suppose ;^)
Immense thanks Colin
Jonathan F :^)
Colin
On Sunday, August 10, 2003, at 07:52 AM, Jonathan Fleming wrote:
Ps. having just looked at this url how can I get appendToResponse to give
me this bit:
tbClientID=1156&country=*megastore*&bAdvancedReturnDG=false&companyName
=*megastore*&categoryName=*megastore*&metaKeywords=*megastore*&bNormalR
eturnDG=true&cityTown=*megastore*&artisteName=*megastore*
If I can get that bit dynamically I can do what I need in a hyperlink by
manually crating the first part of the URL since this is static /
bookmarkable anyway.
_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger
http://www.msn.co.uk/messenger
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.