Re: passing a parameter to a direct action via the http POST method
Re: passing a parameter to a direct action via the http POST method
- Subject: Re: passing a parameter to a direct action via the http POST method
- From: Simon McLean <email@hidden>
- Date: Thu, 25 Jan 2007 10:53:36 +0000
if you are submitting your POST with a form then you just bind
actionClass and directActionName parameters as necessary, and pass in
parameters with text fields (or hidden fields) in the form itself.
if you are constructing a POST with, say, java.net.HttpConnection
then you set it's URL to the fully qualified DA and set the content
of the request to a string of your parameters like this:
param1=value1+param2=value2+param3=value3
Simon
On 25 Jan 2007, at 10:39, Paolo Sommaruga wrote:
Hi,
usually one can pass a parameter to a direct action via an
WOHyperLink with the following in the .wod file
myLink: WOHyperLink : {
actionClass = "DirectAction";
?name = someBinding;
}
and this produce in the browser an url query string in which
actually the parameter name is passed with the http GET method. My
question is: there is a way to passing a parameter to a direct
action via the http POST method ? I need to pass an object
parameter which can exceed the size limit with GET
Thanks and Regards
Paolo Sommaruga
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
_______________________________________________
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