• 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: DirectAction question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DirectAction question


  • Subject: Re: DirectAction question
  • From: "Jerry W. Walker" <email@hidden>
  • Date: Sun, 10 Jul 2005 20:40:27 -0400

On Jul 10, 2005, at 1:59 PM, Guido Neitzer wrote:

Hi.

I have a short question regarding direct actions:

If I build an application, that uses direct actions, should I see the instance number in the URL? I use WOHyperlink with "directActionName" bound and nothing more. I don't see the instance number in deployment.

Are you really asking about instance numbers or session IDs?

If you're using direct actions, you should see neither the instance number nor the session ID under normal circumstances.

To keep things clear, a typical URL for a WebObjects application might look something like this:

http://www.myDomain.com/cgi-bin/WebObjects/MyApplication.woa/3/ E8aBrao7XF0dR691brFfXh/1.2.3.4

In this case, the URL's components are:

http://<domain>/cgi-bin/WebObjects/<applicationName>.woa/ <instanceNumber>/<SessionID>/<contextID>.<elementID>

where:

domain = www.myDomain.com
applicationName = MyApplication
instanceNumber = 3
SessionID  = E8aBrao7XF0dR691brFfXh
contextID = 1
elementID = 2.3.4

The instance number is seldom seen unless you are specifically sending a request to a specific instance. In that case, however, you would probably be sending an URL with nothing beyond the instance number.

Also, if I create a session in one component, this session shows up in the URLs on exactly this page, but only on WOHyperlinks that use the standard "action" binding.

That's because action bindings have to be handled by the component action request handler and require the session ID, so WOComponent automatically generates these for you if you use the action binding instead of the actionClass and directActionName bindings (which will not include the session ID).


Do I really need to make my own handling for all that?

No, depending on what you wish to do, most of it should be handled for you.


Thanks for enlightenment ...

You're welcome. :-)

Regards,
Jerry

--
__ Jerry W. Walker, Partner
C o d e F a b, LLC - "High Performance Industrial Strength Internet Enabled Systems"
email@hidden
212 465 8484 X-102 office
212 465 9178 fax



_______________________________________________ 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
  • Follow-Ups:
    • Re: DirectAction question
      • From: Alexandra <email@hidden>
References: 
 >DirectAction question (From: Guido Neitzer <email@hidden>)

  • Prev by Date: Re: DirectAction question
  • Next by Date: Image Problems
  • Previous by thread: Re: DirectAction question
  • Next by thread: Re: DirectAction question
  • Index(es):
    • Date
    • Thread