Re: Direct Action Multiple Parameters
Re: Direct Action Multiple Parameters
- Subject: Re: Direct Action Multiple Parameters
- From: David LeBer <email@hidden>
- Date: Wed, 2 Mar 2005 15:30:43 -0500
On Mar 2, 2005, at 3:04 PM, Janice Cheung wrote:
Hi David,
I did come across your page when I was searching on Google.
:).
Can I see some sample code to better understand how to implement
this?
<snip>
My NSLog.out.appendln("request=" +request) statement shows that my
request contains this:
formValues={SessionID = ("Q3ftncuOduDgpJtI7tA1q0"); x = ("9");
Language = ("Spanish"); y = ("7"); BatchSize = ("20"); BatchIndex =
("1"); }
How do I get them out for my Direct Action?
Is this what you are looking for?
public WOActionResults demoAction() {
WOComponent page = pageWithName("PageName");
String xValue = (String)this.request().formValueForKey("x");
String languageValue =
(String)this.request().formValueForKey("Language");
String yValue = (String)this.request().formValueForKey("y");
String batchSizeValue =
(String)this.request().formValueForKey("batchSize");
String batchIndexValue =
(String)this.request().formValueForKey("batchIndex");
// Do something with all these values
return page;
}
;david
--
David LeBer
Codebase Software Systems
site: http://www.codebase.ca
blog: http://david.codebase.ca
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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