Re: Direct Action Multiple Parameters
Re: Direct Action Multiple Parameters
- Subject: Re: Direct Action Multiple Parameters
- From: Janice Cheung <email@hidden>
- Date: Wed, 02 Mar 2005 15:04:30 -0500
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?
Basically the only difference I see is that instead of
formValueForKey, you're using formValuesForKey.
Thanks for your response!
Best regards,
Janice
David LeBer wrote:
On Mar 2, 2005, at 2:46 PM, Janice Cheung wrote:
Greetings!
I have a question about passing multiple parameters within the
Direct Action.
This is how my WOComponent renderXMLAction looks:
public WOComponent renderXMLAction(){
WORequest request = request();
String xmlFile=(String)request().formValueForKey("Lastname");
SearchResults
nextPage=(SearchResults)pageWithName("SearchResults");
nextPage.setXmlSource(xmlFile);
return nextPage;
}
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?
Any advice or guidance is greatly appreciated!
Best regards,
Janice
<http://david.codebase.ca/index.php?cat=14>
DirectActions for fun and profit...
;david
--
David LeBer
Codebase Software Systems
site: http://www.codebase.ca
blog: http://david.codebase.ca
|
_______________________________________________
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