• 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: How do I get a complete url to a component
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get a complete url to a component


  • Subject: Re: How do I get a complete url to a component
  • From: George Domurot <email@hidden>
  • Date: Mon, 27 Oct 2008 07:00:08 -0700

You may want to consider creating a direct action of your own, i.e.:

	YourApp.woa/wa/myPageWithName?name=MyComponentName

That way you can check the name value and decide if it's an appropriate component to return. If not, you could provide a default or error page.

-G

On Oct 27, 2008, at 6:25 AM, Jonathan Ricker wrote:

I don't think any exists because I don't believe you normally would do that. You could just make a direct action that uses pageWithName. Perhaps if you provided more info on what you are doing the good people on the list can provide you with the best options.

-- Jonathan

P.S. There is (or maybe was?) a way to get at components with a url like /cgi-bin/WebObjects/AppName.woa/wo/ComponentName.wo but I believe it is considered a security hole...

On Oct 27, 2008, at 7:31 AM, Freddie Tilley wrote:

How do I get a complete url to the component as a String, like the url returned by pageWithName?
I cannot find a method like directActionURLForActionNamed specific for components


Freddie Tilley
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@vt.edu


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

_______________________________________________ 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: 
 >How do I get a complete url to a component (From: Freddie Tilley <email@hidden>)
 >Re: How do I get a complete url to a component (From: Jonathan Ricker <email@hidden>)

  • Prev by Date: Re: How do I get a complete url to a component
  • Next by Date: Re: generics and KVC.NullValue
  • Previous by thread: Re: How do I get a complete url to a component
  • Next by thread: Problem building Project Wonder from source
  • Index(es):
    • Date
    • Thread