• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: passing a parameter to a direct action via the http POST method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >passing a parameter to a direct action via the http POST method (From: Paolo Sommaruga <email@hidden>)

  • Prev by Date: Re: Including Libraries in .woa
  • Next by Date: Re: passing a parameter to a direct action via the http POST method
  • Previous by thread: passing a parameter to a direct action via the http POST method
  • Next by thread: Re: passing a parameter to a direct action via the http POST method
  • Index(es):
    • Date
    • Thread