Solved

load any sites page from applet

Posted on 2002-04-18
8
139 Views
Last Modified: 2010-03-31
Can we load any sites page from applet?

I have my applet on selecting any url from combo box eg www.google.com 
it should display the page in same browser
It should also be able to open the same on particular Ip address.



Thanx
AJ
0
Comment
Question by:j007
8 Comments
 
LVL 92

Accepted Solution

by:
objects earned 200 total points
ID: 6952556
By default an applet does not have permission to do what you want. It is only allowed to connect to the site that it was loaded from.

You must get the user to grant the applet additional permissions if you with to connect to other sites.

You could of course simply display the page in another browser window, instead of having the applet display it:

applet.getAppletContext().showDocument(url, "target");
0
 

Author Comment

by:j007
ID: 6952624
I want to show the url on the same applet window as I want to trap the mouse event too.

What permissions are to be granted for connecting to other sites?


Thanx in Advance
Aj
0
 
LVL 92

Expert Comment

by:objects
ID: 6952635
I think its SocketPermission.
So do you want the page to display within the applet, or outside the applet?
0
 

Author Comment

by:j007
ID: 6952864
I want this page to be displayed inside the applet
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 92

Expert Comment

by:objects
ID: 6952879
Then you'll need to get the necessary priveliges from the user either by signing the applet and requesting them from the user, or changing their policy file.
0
 
LVL 12

Expert Comment

by:ahosang
ID: 6953891
getAppletContext().showDocument(url)
should work if called from within the applet.
0
 
LVL 9

Expert Comment

by:Venci75
ID: 7972386
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by: objects
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Venci75
EE Cleanup Volunteer
0
 

Expert Comment

by:SpideyMod
ID: 8021347
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
groupNoAdj 7 84
Error trying to install RTMT Win7 5 38
web services creation SOAP vs REST 5 17
reverse digits of a number using for loop 5 36
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now