473,587 Members | 2,588 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Signed java applet

Hi all

I have a small problem with a signed applet.
The applet works fine but some users wont click 'yes' to give the applet
further privileges (that is ok too). If the user dont give the applet
privileges I show a page telling them that the applet wont work unless
they grant the applet privileges and give them a link back to the
original page so that they can try again if they want to.
But if they follow that link, nothing happens...unles s the cache is cleared.

Does the browser (tested with IE and Firefox) remember the original answer ?
I cannot find anything regarding this policy in the applet security FAQ
or any other place.

Will I have to provide two identical applets to overcome this ?

Best
Robert Larsen
Jun 27 '08 #1
3 2366
On Mon, 16 Jun 2008 12:50:13 +0200, Robert Larsen wrote:
Hi all

I have a small problem with a signed applet. The applet works fine but
some users wont click 'yes' to give the applet further privileges (that
is ok too). If the user dont give the applet privileges I show a page
telling them that the applet wont work unless they grant the applet
privileges and give them a link back to the original page so that they
can try again if they want to. But if they follow that link, nothing
happens...unles s the cache is cleared.

Does the browser (tested with IE and Firefox) remember the original
answer ? I cannot find anything regarding this policy in the applet
security FAQ or any other place.

Will I have to provide two identical applets to overcome this ?

Best
Robert Larsen
Sounds like you should move some of your code from init() to start().
--
James
*Note: Remove every other letter for correct email address
Jun 27 '08 #2
James wrote:
On Mon, 16 Jun 2008 12:50:13 +0200, Robert Larsen wrote:
>Hi all

I have a small problem with a signed applet. The applet works fine but
some users wont click 'yes' to give the applet further privileges (that
is ok too). If the user dont give the applet privileges I show a page
telling them that the applet wont work unless they grant the applet
privileges and give them a link back to the original page so that they
can try again if they want to. But if they follow that link, nothing
happens...unle ss the cache is cleared.

Does the browser (tested with IE and Firefox) remember the original
answer ? I cannot find anything regarding this policy in the applet
security FAQ or any other place.

Will I have to provide two identical applets to overcome this ?

Best
Robert Larsen

Sounds like you should move some of your code from init() to start().
But accepting the certificate and granting extra privileges happens
before the applet starts so how would this solve anything ?
The second time the user is not even asked to accept the certificate. It
seems to be assumed that since the user didn't accept it the first time
he shouldn't even be asked again.
Jun 27 '08 #3
Robert Larsen wrote:
James wrote:
>On Mon, 16 Jun 2008 12:50:13 +0200, Robert Larsen wrote:
>>Hi all

I have a small problem with a signed applet. The applet works fine but
some users wont click 'yes' to give the applet further privileges (that
is ok too). If the user dont give the applet privileges I show a page
telling them that the applet wont work unless they grant the applet
privileges and give them a link back to the original page so that they
can try again if they want to. But if they follow that link, nothing
happens...unl ess the cache is cleared.

Does the browser (tested with IE and Firefox) remember the original
answer ? I cannot find anything regarding this policy in the applet
security FAQ or any other place.

Will I have to provide two identical applets to overcome this ?

Best
Robert Larsen
Sounds like you should move some of your code from init() to start().

But accepting the certificate and granting extra privileges happens
before the applet starts so how would this solve anything ?
The second time the user is not even asked to accept the certificate. It
seems to be assumed that since the user didn't accept it the first time
he shouldn't even be asked again.
It has nothing to do with your code - it is the browser's mechanism for
handling permissions. The "don't allow" is persistent for the session.

If you are serving the applet from a dynamic page (jsp, etc.) you might
try killing the current session and starting a new one (no guarantees -
your mileage may vary). From static pages, I can't think of anything
other than serving a different applet but others may have a better idea.

--
Dave Miller
Java Web Hosting at:
http://www.cheap-jsp-hosting.com/
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3374
by: apchar | last post by:
I am trying to use php as a kind of servlet to act as a middle man between a java applet and mysql. I know java has jdbc but it's flakey and painful. php access to mysql is much nicer. So I have: 1. An html page that holds the applet. 2. a php page that accepts data submitted to it by the applet via the $_POST array and writes it to the mysql...
0
9864
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ********************************** package Celcom.Client;
0
1314
by: Ike | last post by:
I have a signed JApplet which has a JTextArea wherein one can put Jython Script. Upon clicking a JButton, the script is executed. The script which executes to code is listed below. If I run the Applet in an AppletViewer, it runs fine. However, when run in a web browser, I am getting NullPointerException's (I copy-pasted from the Java...
3
3509
by: Larry Martin | last post by:
I am trying to run a Java Applet on my ascx page and am getting an IO exception when IE6 tries to load the applet. It seems a lot of others are getting the same problem but a search of the web did not turn up any sort of solution. I have tried most of the suggestions but none of them seem to have helped with the problem. My error is below...
12
8485
by: Andrey | last post by:
Hi, I just wonder if anybody can help me with this: I need to give my javascript code some extended permissions for disk access on client's machine, and as i understand i need to sign this js. Can someone tell me how to sign js to work with with ie? Can i put my js file into jar and use jarsigner for that? And by the way, would it give me...
1
1499
by: jindalily | last post by:
Hey guys, I wasn't completely sure if this would be a Java or JS topic, but I thought it had more to do with Ajax and whatnot. Anyway, I have an embedded and signed Java applet on my page like so: <applet style="position:absolute;left:-1px" code="fileSaver.class" archive="SignedFileSaver.jar" width="1" height="1"></applet> this applet's...
2
3869
by: JohnLorac | last post by:
Hello, I'm trying to load and write file on local disc drive using signed javascript file. But I have experienced problem running this url: jar:http://www.domain.com/secure-scripts/secure.jar!/thepage.html (sample) in browser (Firefox) which simply won't work. I can't access to html file embedded in jar file. My sample applet IO.java...
0
7918
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7843
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6621
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2353
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.