🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #660

Trying to copy text to clipboard from an applet...

#660
From: Paul
Date: Mon, 03 Jul 2000 00:00
42 lines
2286 bytes
Hi all,

I have written a small applet program that copys a line of text from a
textfield to the clipboard.
I have created a .java.policy file and can view the applet using
appletviewer but when I upload it to my webpage I get errors. I realise that
it some kind of security error but have no idea what to do next..

The following is copied from IE's Java Console.
==============================================
D> ------------- Applet Init ----------------
D> ------------- Applet start ---------------
D> Post record to url http://fe2-gc.imrworldwide.com/cgi-bin/demorecord
D> -------------- Output ------------------
Record Sent
D> ------------- End Output ---------------
com.ms.security.SecurityExceptionEx[modemlist.<init>]: Clipboard access
denied.
 at com/ms/security/permissions/UIPermission.check
 at com/ms/security/PolicyEngine.deepCheck
 at com/ms/security/PolicyEngine.checkPermission
 at com/ms/security/StandardSecurityManager.chk
 at com/ms/security/StandardSecurityManager.checkSystemClipboardAccess
 at com/ms/awt/WToolkit.getSystemClipboard
 at modemlist.<init>
 at com/ms/applet/BrowserAppletFrame.newInstance
 at com/ms/applet/AppletPanel.processSentEvent
 at com/ms/applet/AppletPanel.processSentEvent
 at com/ms/applet/AppletPanel.run
 at java/lang/Thread.run
java.lang.InstantiationException: modemlist
 at com/ms/applet/BrowserAppletFrame.newInstance
 at com/ms/applet/AppletPanel.processSentEvent
 at com/ms/applet/AppletPanel.processSentEvent
 at com/ms/applet/AppletPanel.run
 at java/lang/Thread.run

Can somone please help??

Regards,

Paul
Technical Details
Message-ID: <Dv085.5416$c5.13116@newsfeeds.bigpond.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,2acdb1123e6f7019,start
X-Google-Attributes: gid10d6db,public
From: "Paul" <paul_klingl@bigpond.com>
Subject: Trying to copy text to clipboard from an applet...
Date: 2000/07/03
Message-ID: <Dv085.5416$c5.13116@newsfeeds.bigpond.com>
X-Deja-AN: 641823845
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
X-Trace: newsfeeds.bigpond.com 962630755 139.134.71.210 (Mon, 03 Jul 2000 23:25:55 EST)
Organization: Telstra BigPond Internet Services (http://www.bigpond.com)
X-MSMail-Priority: Normal
NNTP-Posting-Date: Mon, 03 Jul 2000 23:25:55 EST
Newsgroups: aus.computers.java