Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Applet security

Reply
Thread Tools

Applet security

 
 
Panther240
Guest
Posts: n/a
 
      10-29-2003
Hi

I have a method inside a applet class

public void print()
{
//code
}
I am trying to access the method through HTML using <applet></applet>
I want to do something line Applet.print().
When I try this it gives me a security exception.
I signed the applet.I am able to access events on buttons inside the applet.
void jButton1_actionPerformed(ActionEvent e) {
System.out.println("Button Action Perfomed....Printing");
print();
}//this code works FINE
But when I do Applet.print(). THIS CODE FAILS-security exception.
SUGGESTIONS PLEASE
 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      10-29-2003
"Panther240" <> wrote in message
news: om...
....
> I have a method inside a applet class

....
> SUGGESTIONS PLEASE


URL?

--
Andrew Thompson
http://www.AThompson.info/
http://www.PhySci.org/
http://www.1point1C.org/


 
Reply With Quote
 
 
 
 
Panther240
Guest
Posts: n/a
 
      10-29-2003
(Panther240) wrote in message news:<. com>...
> Hi
>
> I have a method inside a applet class
>
> public void print()
> {
> //code
> }
> I am trying to access the method through HTML using <applet></applet>
> I want to do something line Applet.print().
> When I try this it gives me a security exception.
> I signed the applet.I am able to access events on buttons inside the applet.
> void jButton1_actionPerformed(ActionEvent e) {
> System.out.println("Button Action Perfomed....Printing");
> print();
> }//this code works FINE
> But when I do Applet.print(). THIS CODE FAILS-security exception.I TRY THIS IN JAVASCRIPT.(HTML)
> SUGGESTIONS PLEASE



But when I do Applet.print(). THIS CODE FAILS-security exception.I
TRY THIS IN JAVASCRIPT.(HTML)
 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      10-30-2003
"Panther240" <> wrote in message
news: om...
> (Panther240) wrote in message

news:<. com>...
....
> > I have a method inside a applet class
> >
> > public void print()

....
> > When I try this it gives me a security exception.
> > I signed the applet.I am able to access events on buttons inside the

applet.
.....
> But when I do Applet.print(). THIS CODE FAILS-security exception.I
> TRY THIS IN JAVASCRIPT.(HTML)


What is your URL? How did you sign the Applet?

Better help will usually be forthcoming if you can provide
a small, self-contained, compileable example.
[ Though in this situation it _seems_ the code is
not the problem, it is hard to say for sure. ]

--
Andrew Thompson
http://www.AThompson.info/
http://www.PhySci.org/
http://www.1point1C.org/


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When Javascript call applet method, applet throw security exception. crazytazo Java 3 10-06-2008 11:12 PM
IT-Security, Security, e-security COMSOLIT Messmer Computer Support 0 09-05-2003 08:34 AM
Re: newbie: Join JApplet & Applet in one applet Andrew Thompson Java 0 08-05-2003 01:41 PM
Re: play wave files using java.applet.Applet webster Java 0 07-20-2003 01:51 PM
applet vs. canvas in applet Rob Love Java 1 07-07-2003 10:07 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57