Dear Mark,

Thanks for the help, it would be nice if the direct connection mode worked the same as using a Web server <grin>

Thanks

Vincent

On 26 Feb 2006, at 22:36, Mark Morris wrote:

Hi Vincent,

I'm guessing this is in direct connect mode? You would need to either develop and test using a web server, or, as a development hack, create a directory on your machine at:

/Library/WebServer/Documents/WebObjects/DATest.woa/ WebServerResources/

and put a copy of the WebServerResources files there.

On the other hand, perhaps you could move these resources to a fixed location on your server. As I see it, the WebServerResources items are really application-specific, to be managed by WOResourceManager. It might make more sense to put these items in a more central, shared location.

Good luck!

Regards,
Mark

On Feb 26, 2006, at 2:26 PM, Vincent Coetzee wrote:

Dear Mark,

Thanks for the pointer, but I have some static html in an iframe that needs to reference this file on the server, there is no java in sight, so that does not help me.

Vincent

On 26 Feb 2006, at 22:19, Mark Morris wrote:

Hello Vincent,

You use WOResourceManager. For example, to get the complete URL to your server.html file, try:

String serverHtmlUrl = WOApplication.application().resourceManager ().urlForResourceNamed( "server.html", null, null, context ().request() );

Regards,
Mark

On Feb 26, 2006, at 2:05 PM, Vincent Coetzee wrote:

Dear List,

I have added some images and static html files to my WebObjects project, specifically to my WebServerResources group, my project is called DATest, and hence my woa is DATest.woa. I am referring to them in my html as

        "/WebObjects/DATest.woa/WebServerResources/server.html"

however at runtime I receive the following error

<com.webobjects.appserver._private.WOStaticResourceRequestHandler> Unable to get contents of file for uri. file: /Library/ WebServer/Documents/WebObjects/DATest.woa/WebServerResources/ server.html; uri: /WebObjects/DATest.woa/WebServerResources/ server.html

I have checked in my woa package and the files are there. How should I be referencing these files ?

TIA

Vincent



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to