Accessing JAR Archive from WebJavaApplet

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Accessing JAR Archive from WebJavaApplet

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:57 pm

by Anonymous >> Mon, 4 Jun 2007 19:18:19 GMT

I'm trying to incorporate an applet I wrote into a form using a WebJavaApplet control. I've gotten it to work by specifying the .class file containing the applet object but I got access denied errors once I added code to make the applet a webServices client.

I found that I needed to sign the applet and once I did that I could use the applet in a simple web page. However, signing an applet requires that it be part of a JAR file. The applet is then instantiated from HTML using:

<APPLET code="PRTimesheet3.PyrlTime.class" archive="PyrlTimesheet.jar" mayscript name="18068.59" alt="" ALIGN=RIGHT height="372" width="706" hspace="0" vspace="0">
</APPLET>

There doesn't appear to be any way to specify an archive= attribute for the WebJavaApplet control. Is there any way to access an applet that is part of a Java archive?

Thanks,

John Rader
Flathead County Montana

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Accessing JAR Archive from WebJavaApplet

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:57 pm

by Jade Support >> Fri, 22 Jun 2007 3:41:01 GMT

John,

The archive attribute will be generated when you set the hyperlink property to the value you require. The hyperlink property is on a superclass (Label). Set this property in your code to the appropriate value. For example in the Form::load() event method code:

WebJavaApplet.hyperlink := "PrylTimesheet.jar";

You cannot set this at design time.

Jade Support.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 9 guests

cron