Re: WOApplets, getting closer -SOLUTION-
Re: WOApplets, getting closer -SOLUTION-
- Subject: Re: WOApplets, getting closer -SOLUTION-
- From: MacFirst <email@hidden>
- Date: Tue, 04 Nov 2003 18:25:17 -0800
on 11/4/03 2:07 PM, Mankit Sze <email@hidden> went on and on saying, in
part:
> I guess that an example may be worth a thousand words.
>
> [demime 0.98b removed an attachment of type application/x-tar which had a name
> of TestWOAppletCodebase.tar]
> Mankit
Thanks, Mankit -- your project was exactly what I needed.
For others stuck in the same boat, here are the items I was missing and/or
had incorrect:
* In PB, MyApplet.java source belongs to target Web Server, and not in
Application Server.
* You must NOT use the "WODirectConnect=NO" flag for local testing.
* Mankit's project-note said I needed to copy
/MyWOApp.woa/Contents/WebResources/Java/MyApplet.class into
/Library/WebServer/Documents/, although I didn't need that for local
testing. Perhaps once I deploy, I'll need to do that.
[Those last two items may go together. That is, with WODirectConnect=NO,
perhaps you must copy your .class file into the library, although I had some
difficulty getting that to work for local testing, so just blew it off.]
* In WOBuilder, the important attributes for your WOApplet are:
code "MyApplet.class"
codeBase "/Java/"
[NOTE: WOBuilder will complain on verification/save "Missing required
attribute: code", if you use a hard-coded string like that. If it annoys
you, you can get around it by referencing a String function in your code
that returns the same value.]
Hmmm, I think that's about all I had wrong. Now everything's running along
fine. I have a "next step:" question about getting information back to the
WOApp, but I'll dig around the docs some, before I spring that one on you.
Thanks!
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.