473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

execute method java from javascript.

I want to execute a method of one applet from one page HTML.
If I execute the method that it reads from rows from init() all it
works.
f instead I execute the method through document.applet[].method() I
obtain one Exception java.security.AccessControlException: access
denied. Where mistake?
Thanks
Sergio
Jul 17 '05 #1
1 4713
The init() method let the applet start up with a specific routine
on the virtual machine that also configure the security manager.

May be your method do some operations that need some
particular rights. Those rights may have been set by signing the
applet.
So if the applet is correctly started up, the digital signature is
verified and the SecurityManager is configured to allow you to
complete these operations.
That is not done directly calling the method. So the SM stops you...

Spero di aver centrato il problema. Ciao!

--
Luca Paganelli
"Sergio" <sm*****@supereva.it> wrote in message
news:93**************************@posting.google.c om...
I want to execute a method of one applet from one page HTML.
If I execute the method that it reads from rows from init() all it
works.
f instead I execute the method through document.applet[].method() I
obtain one Exception java.security.AccessControlException: access
denied. Where mistake?
Thanks
Sergio

Jul 17 '05 #2

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

Similar topics

1
by: Cyrus Lan | last post by:
I have a jar file, without source code, say abc.jar. I have set it in the CLASSPATH The main execute class in abc.jar is a.class. In the command prompt, I can execute the program by issuing...
3
by: Ruskin | last post by:
I'm confused (that's not too difficult to do)... But I read the write-up on the javaEnabled() method; window.navigator.javaEnabled() States; the return value indicates if the preference that...
6
by: Martin | last post by:
I'd like to be able to get the name of an object instance from within a call to a method of that same object. Is this at all possible? The example below works by passing in the name of the object...
2
Saghar
by: Saghar | last post by:
Hi, Could somebody help me about this topic? I want to know how we can call and execute a non-java source file in a java application. For example, a simple Java application is run, there is an...
1
by: bhanup | last post by:
how do I execute a java script? If I have a JavaScript code and saved in a HTML format.Then I just open that file in IE.But how to invoke the Java Script.Wat do i need to install apart from IE?...
9
by: VK | last post by:
<OT>I am finishing TransModal 0.1 so planning to move it from alpha to beta stage.<OT> Besides that I am planning to write an introductory to inheritance schema currently used in Javascript...
2
by: cloudy | last post by:
First at all, i'm sorry, i not good in writing english. i want to retrieve a string from my applet via Javascript. I use a method named ReadAll. public String ReadAll(String StrOut, String...
6
by: moongeegee | last post by:
I have compile my java program as myjava.class. And I can run as "java myjava" without any program. As now, I need to execute myjava.class in javascript. Please shed a light how to execut "java...
5
by: sayeo87 | last post by:
Hi, I am quite new to JSP so please forgive me if I ask really simple things... I am trying to run system commands on the server and display the output on a webpage. This is what I've got: <%@...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.