🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #77

Applet and printing

#77
From: Hiroshi
Date: Fri, 23 Dec 2005 11:30
25 lines
2830 bytes
Hi everyone, I'd like to confirm my conclusion from a long and arduous experience.

"Applets cannot print even setting 'File Permission' in a policy file that resides in a local system."

Sun provides tutorial for us. One of them is dedicated to this 'applet and resource restriction' issue in

http://java.sun.com/docs/books/tutorial/security1.2/tour1

At its start, it says "...It shows how resource accesses, such as reading or writing a file, are not permitted for applets unless explicitly allowed by a permission in a policy file."

In the following web pages (many of them), there is NO instance of using word 'printing'. So this tutorial seems not to be meant for printing, ie the word 'resouce' here does not include printing (although it doesn't make a sense to me, but...)

Following the step-by-step instructions, the statement in the start page was indeed the case; by adding a policy file to "java.security" file (which web browsers and appletviewer refer), we can make an applet access named files for the specified access.

In the policy, there are many 'permissions' from AudioPermission to SSLPermission, one of them is FilePermission. My experience with the tutorial confirms that FilePermission is applicable to file I/O, but not printing.

I find it so weird that the policy does not include printing.

Some contributors to Sun's Java forum say that applets must be certified to be able to print while some few contributors say otherwise ie no need to certify.

Could anyone give web addresses where I can find out detail and definite description about this issue - applet and PRINTING?
(What I read and found about the issue is alway, always merkey about it. Some of them even list 'display' to be permitted its access. (What 'display'? It can't be monitors because without monitor access, what can an applet do? Playing music without revealing itself?) They use word 'resource' or 'device'. So files are resources and printers and modems are devices. Resources are under the policy, then what are devices under?

Your response is greatly appreciated.
Technical Details
Message-ID: <43abedf2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,1fd2d7935d8c3707,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Hiroshi" <hiroshinakata@hotmail.com>
Sender: "Hiroshi" <hiroshinakata@hotmail.com>
Reply-To: "Hiroshi" <hiroshinakata@hotmail.com>
Subject: Applet and printing
Newsgroups: borland.public.jbuilder.java.swing
X-User-Info: 69.192.157.16     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <43abedf2$1@newsgroups.borland.com>
Date: 23 Dec 2005 04:30:42 -0700
X-Trace: newsgroups.borland.com 1135341042 207.105.83.66 (23 Dec 2005 04:30:42 -0700)
Lines: 26
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail