Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
WebServer URLs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WebServer URLs



I am running a WOApplet (deployed on my local host 'kermac.local') in the following folder :
/Library/WebServer/Documents/WebObjects/Java/applets/Animator/...

in this folder I have all classes , and the Animator.class (modified Animator java applet example)
this applet use audio and image files located in 2 folders/subfolders /audio and /images/Beans
(all this bunch of files in a Animator.jar runs well too...)

1- to run this example within WOApplet I have to do just one modification :
new URL(getDocumentBase(), param + "/") changed to this.getClass().getResource(param + "/")
this will get the image and audio file from the applet location....

2- a shift-crtl click in the applet windows gives info on URL used and I can see that :
description.tell("Image Resource base: "+ "\n\n");

gives the following URL for the 'images' folder (when running all bunch in a .jar file...)
Image Resource base: jar:http://kermac.local/WebObjects/Java/applets/Animator/Animator.jar!/images

WHY this kind of URL ? http://kermac.local/WebObjects
and not http://kermac.local/Library/WebServer/Documents/WebObjects

thanks for your info

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

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.