• 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: More path issues when developing with Eclipse vs old XCode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More path issues when developing with Eclipse vs old XCode


  • Subject: Re: More path issues when developing with Eclipse vs old XCode
  • From: Baiss Eric Magnusson <email@hidden>
  • Date: Sat, 24 Oct 2009 12:48:25 -0700

It works.

Oh my, I missed that permutation, thought I had tried all 8 combinations, thanks much,

Baiss

On Oct 24, 2009, at 12:09 PM, Kieran Kelleher wrote:

Try relative path....

String fileNameAndPath = "helpFiles/LoginHelp.html";

On Oct 24, 2009, at 2:55 PM, Baiss Eric Magnusson wrote:

String fileNameAndPath = "/helpFiles/LoginHelp.html";

try {
WOResourceManager rm = application().resourceManager(); // this works


// both of the below fail
...
rtrnHTMfile = rm.urlForResourceNamed( fileNameAndPath, null, null, context().request() );
...
byte[] wholePage = rm.bytesForResourceNamed(fileNameAndPath, null, null);


} catch ( Exception ex3 ) {
throw new NSForwardException( ex3, "<rtrnHTMfile> could not open file" );
}


rtrnHTMfile  yields:

/cgi-bin/WebObjects/tyf.woa/-5555/wr? wodata=ERROR_NOT_FOUND_framework_*null*_filename_/helpFiles /LoginHelp.html

How should the path look when sent into < rm.urlForResourceNamed>?

The Property pane of the file, seen by right-clicking on the file, shows the path as:

</tyf/WebServerResources/helpFiles/LoginHelp.html>

On Oct 22, 2009, at 4:35 PM, Chuck Hill wrote:

No.  See WOResourceManager.

Chuck
----
Baiss Eric Magnusson
http://www.CascadeWebDesign.com


_______________________________________________ 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: 
 >More path issues when developing with Eclipse vs old XCode (From: Baiss Eric Magnusson <email@hidden>)
 >Re: More path issues when developing with Eclipse vs old XCode (From: Chuck Hill <email@hidden>)
 >Re: More path issues when developing with Eclipse vs old XCode (From: Baiss Eric Magnusson <email@hidden>)

  • Prev by Date: Re: More path issues when developing with Eclipse vs old XCode
  • Next by Date: Re: Webobjects-dev Digest, Vol 6, Issue 949
  • Previous by thread: Re: More path issues when developing with Eclipse vs old XCode
  • Next by thread: reading a file form a component NoSuchFileException
  • Index(es):
    • Date
    • Thread