Embedding web browser in applet

V

vidhi

hi everyone, i faces a problem where i like to open web pages within my
applet window instead on main we browser window, also those web pages
have link by using get and post methods also well use of cookies.
Is there any control available in applet which let us to open web pages
like browser control in ActiveX.
 
M

Manish Pandit

An applet making connections to servers outside the host server, and on
top of that, writing cookies on the client browser - I am quite sure
this is not feasible.

If you want a swing or AWT based HTML renderer/Browser, there are
plenty available like icesoft, hotjava and jRex, etc.

Why do you need an applet based browser within a real browser anyway?

-cheers,
Manish
 
V

vidhi

Thanks for your view, but actually the browsers available with JFC are
browser it self, but what i need is a browser with in my Applet or
JApplet window.
Actually the concept behind is to pick the information of page whose
url is provided by user in same page, for this we need to open up the
page firstly and if use frame for same purpose security do not allows
us to gather information from the page which is opens from different
server and on different frame.
 
A

Andrew Thompson

vidhi said:
Thanks for your view, but actually the browsers available with JFC are
browser it self, but what i need is a browser with in my Applet or
JApplet window.
Actually the concept behind is to pick the information

What does that entail, exactly? Does the applet
display the pages to the end user? Does it get
information from the page and 'reorganise it'?

What would motivate me, as a potential end user,
to surf to the applet and give it an URL, rather than
surf to the URL directly?
...of page whose url is provided by user

Provided by the end user, or obscured behind some
button that offers to 'Fetch Our News Feed'?
...in same page,

There are many who argue that active elements should not
be embedded in web pages, but this scheme aims to
put web pages, in embedded applets, in web pages.

Insanity!
.... for this we need to open up the
page firstly and if use frame for same purpose security do not allows
us to gather information from the page which is opens from different
server and on different frame.

Unless the applet is trusted by the end user, then it
can browse any host/server that will allow connections
from Java programs.

My views are,
1) If the applet does not have the trust of the end user,
it should not be stealing content from other web sites.
2) Even if it does have the trust of the end user, it
should not be taking content from other sites without
the webmaster's specific consent.

Andrew T.
 
M

Manish Pandit

I agree with Andrew T.

OP - From your description it sounds like you intend to do page
scraping - if yes, then there are better ways to do it than having an
applet act as a minibrowser and write cookies on the client box.

-cheers,
Manish
 
V

vidhi

I know you all are right but my problem is some thing differ, i like
user to open any URL on the page with out leaving current page, but
same time i can't use frames because if i use frame i cant be able to
get information about page open on any other frame, i found applet as
the best option for same but here is the problem arrives how can i be
able to open any web URL in applet window (their might be any control
available which can be used as we browser as there are swing web
browser available)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,082
Members
48,773
Latest member
Kaybee

Latest Threads

Top