Re: WOApplet (close to success...)
Re: WOApplet (close to success...)
- Subject: Re: WOApplet (close to success...)
- From: Chuck Hill <email@hidden>
- Date: Fri, 14 Jan 2005 11:02:02 -0800
On Jan 14, 2005, at 2:46 AM, Erwin wrote:
OK I can see the output :
---------------
<main> Waiting for requests...
<WorkerThread0> [AppletPTViewer:WOApplet] width <== (class
java.lang.Integer: 320)
<WorkerThread0> [AppletPTViewer:WOApplet] height <== (class
java.lang.Integer: 200)
<WorkerThread0> [AppletPTViewer:WOApplet] code <== (class
java.lang.String: "ptviewer.class")
<WorkerThread0> [AppletPTViewer:WOApplet] file <==
(com.webobjects.appserver._private.WOKeyValueAssociation:
"/Users/erwin/Sites/onvisite/pictures/anon/pano/image.jpg")
<WorkerThread0> [AppletPTViewer:WOApplet] codebase <== (class
java.lang.String: "/WebObjects/java/ptviewer")
<WorkerThread0> [AppletPTViewer:WOApplet] archive <== (class
java.lang.String: "ptviewer.jar")
---------------
WT0 get the bindings correctly....
Well, no. No it doesn't. It gets binding values, but they are all
wrong.
Keep repeating this to yourself as you are working in a WO app:
This is going through a web server.
This is going through a web server.
This is going through a web server.
That is a vital thing to keep in focus. Even if you are using direct
connect which I HATE. If you are using DirectConnect you are on your
own, someone else can help you fight with WOResourceManager.
OK, now lets take a look at this:
<WorkerThread0> [AppletPTViewer:WOApplet] file <==
(com.webobjects.appserver._private.WOKeyValueAssociation:
"/Users/erwin/Sites/onvisite/pictures/anon/pano/image.jpg")
This is going through a web server
http://www.erwin.com/Users/erwin/Sites/onvisite/pictures/anon/pano/
image.jpg
I don't know your webserver setup, but I'd be willing to be a fairly
large sum of money that that is going to return a 404.
<WorkerThread0> [AppletPTViewer:WOApplet] codebase <== (class
java.lang.String: "/WebObjects/java/ptviewer")
This is going through a web server
http://www.erwin.com/WebObjects/java/ptviewer
I'm thinking that won't work either.
but then , PTViewer try to get a PTDefault.html file (empty or
additional param) I put it in /WebObjects/java/ptviewer/ no success,
http://www.erwin.com/WebObjects/java/ptviewer/PTDefault.html
Hmmm...
PTViewer doc states that it should be placed in the same directory
with with the applet/jar files ....
but it seems not to be finding it.....
Because it is not in the Web server's DocumentRoot.
This is going through a web server.
Keep saying it. :-)
Chuck
Le Jan 13, 2005, à 7:25 PM, Chuck Hill a écrit :
Add this to the bindings:
WODebug = true;
And see what the convertedFilePath is returning. Might be a
WOResourceMangler URL that is getting requested twice. The second
time will fail. Or you might have set it up wrong and the returned
URL is wrong / an error URL.
Chuck
On Jan 13, 2005, at 10:17 AM, Erwin wrote:
I have an applet reading a picture and displaying it in VR-panoramic
format
The applet is running well but loading the picture ONLY when I
defined the component as 'static'
and pass one parameter... (file = value)
(file = "/pictures/myPicture" .... in Library/WebServer/Documents)
I need to make this WOApplet Dynamic and give it a dynamic file
path, so I defined the WOApplet like that :
Applet1: WOApplet {
archive = "ptviewer.jar";
code = "ptviewer.class";
codebase = "/WebObjects/java";
file = convertedFilePath;
height = 200;
width = 320;
}
the Applet starts but no image is loaded....
how can I do that nicely ?
thanks
Erwin _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development 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