Re: More path issues when developing with Eclipse vs old XCode
Re: More path issues when developing with Eclipse vs old XCode
- Subject: Re: More path issues when developing with Eclipse vs old XCode
- From: Chuck Hill <email@hidden>
- Date: Thu, 22 Oct 2009 16:35:54 -0700
On Oct 22, 2009, at 4:29 PM, Baiss Eric Magnusson wrote:
String fileNameAndPath = "/helpFiles/LoginHelp.html";
File theFile = new File( fileNameAndPath );
try {
FileReader theReader = new FileReader( theFile );
fails with FileNotFoundException."
Yes.
Can that code work both deployed on the Server where the help files
are inside the served site and on a development machine where they
are in the WebServerResources folder of the Eclipse project?
No. See WOResourceManager.
Chuck
From: Chuck Hill <email@hidden>
Looks like you have a CSS reference like "tyf_base.css" instead of
"/tyf_base.css" or something.
Yes, thanks much, got a lot more of the site looking right, lots of
old code that somehow worked.
LWD?
That ubiquitous /Library/WebServer/Documents/.
what is the exact path that <tyf_base.css> resolves to when on the
development computer?
Wonder? Not Wonder? Totally different cases.
Stupid is, as stupid does.
----
Baiss Eric Magnusson
http://www.CascadeWebDesign.com
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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