Re: direct look-up
Re: direct look-up
- Subject: Re: direct look-up
- From: Chuck Hill <email@hidden>
- Date: Fri, 11 Jul 2003 12:48:41 -0700
- Organization: Global Village Consulting, Inc.
Hi Adam,
You would make a direct action method, say showPriceAction() that
looked to the form values (formValueForKey()) for product, userID, and
password. The real URL would look somewhat like this:
http://my-url.com.au/cgi-bin/WebObjects/MyApp.woa/wa/showPrice?product=p123456&user=adamr&password=secret
The direct action method is then responsible for validating the user,
looking up the product, and generating the XML response.
If you are using Apache (or a webserver with similar functionality),
you can make this URL easier by using Rewrite Rules (search the Apple
or Omni archive for RewriteRule for lots of examples) to translate a
URL like this:
http://my-url.com.au/products/p123456/adamr/secret
into the above URL. If you care about the password you will want to
use HTTPS for this!
HTH
Chuck
Adam Rice wrote:
Probably something like XML... I am happy as long as FileMaker can read
them.
Adam Rice
On Friday, 11 July 2003, at 09:03, Chuck Hill wrote:
How are you intending the variables to be returned?
At 08:39 AM 11/07/2003 +1000, Adam Rice wrote:
Hey, I am currently running a WO site but I want to add the ability to
access http://my-url.com.au/product=product# and have variables sent
back.
What is the best angle for me to research to make this work and is
there some way I can password access maybe by making people put their
username and password in the URL?
The ultimate goal is that people using programs like FileMaker Pro can
run scripts to auto-update prices direct from my database.
Thanks,
Adam Rice
_______________________________________________
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.
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
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.
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
Progress is the mother of all problems.
- G. K. Chesterton
_______________________________________________
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.