Solved

load any sites page from applet

Posted on 2002-04-18
8
143 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 

Author Comment

by:j007
ID: 6952864
I want this page to be displayed inside the applet
0
 
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

752 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