Re: URI for static html/image
Re: URI for static html/image
- Subject: Re: URI for static html/image
- From: Vincent Coetzee <email@hidden>
- Date: Sun, 26 Feb 2006 22:26:27 +0200
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden