Re: [NOT SOLVED] Re: Are Applets still valid solutions ...
Re: [NOT SOLVED] Re: Are Applets still valid solutions ...
- Subject: Re: [NOT SOLVED] Re: Are Applets still valid solutions ...
- From: Christian Brunschen <email@hidden>
- Date: Tue, 11 Jan 2005 10:24:31 +0000
On 11 Jan 2005, at 10:01, Erwin wrote:
Actually it doesn't run well.... : I don't know where to place the .jar and .class files neither how to define the bindings...
I need to get an HTML output like :
<APPLET archive=ptviewr.jar code=ptviewer.class width=320 height=200>
<PARAM name=file value=".... a dynamic file path"
</APPLET>
this WOApplet is defined in a ResultPage (resulting from a long request image conversion)
I defined the .wod like that
PtviewerAppplet: WOApplet {
code = "ptviewer.class";
file = convertedFilePath;
height = 200;
width = 300;
archiveNames = ptviewer.jar;
You probably want to put quotes around 'ptviewer.jar', since that is a file name to use literally,, not a key path for WebObjects to look up:
archiveNames = "ptviewer.jar";
}
When I run the app, I got an error (I believe when loading the WOApplet component...)
[2005-01-11 10:53:12 CET] <WorkerThread8> <com.webobjects.appserver._private.WOComponentRequestHandler>: Exception occurred while handling request:
com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException: [<ResultPage name: ResultPage subcomponents: null > valueForKey()]: lookup of unknown key: 'ptviewer'.
This WOComponent does not have an instance variable of the name ptviewer or _ptviewer, nor a method of the name ptviewer, _ptviewer, getPtviewer, or _getPtviewer
[2005-01-11 10:53:12 CET] <WorkerThread8> com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException: [<ResultPage name: ResultPage subcomponents: null > valueForKey()]: lookup of unknown key: 'ptviewer'.
This WOComponent does not have an instance variable of the name ptviewer or _ptviewer, nor a method of the name ptviewer, _ptviewer, getPtviewer, or _getPtviewer
at com.webobjects.appserver.WOComponent.handleQueryWithUnboundKey(WOComponent.java:1566)
at com.webobjects.foundation.NSKeyValueCoding$Utility.handleQueryWithUnboundKey(NSKeyValueCoding.java:544)
Yep, WebObjects is trying to resolve the key path 'ptviewer.jar', but since 'ptviewer' is not a key that exists in your WOComponent, it gets that exception.
Best wishes,
// Christian Brunschen
_______________________________________________
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