This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to navigate through a web page displayed in iframe ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

How to navigate through a web page displayed in iframe ?

Prasad Sonawane
Greenhorn

Joined: Jul 28, 2008
Posts: 9
Hi all...
I am developing a small appication where i want to display website page
in an iframe. My JSP contains a text field (where i type URL), a button(on clickking button the URL of the text field is to be passed to iframe as source) and an iframe (to display the page at specified URL).
I have couple of doubts..
1. How should i use the same iframe to display further pages if i click on any link of the current displayed page ? (i tried this, but every time the next page wont get open inside the iframe and it appears as a normal web page.) Are there some different ways ?
2. Can i read the page data that is displayed in iframe if i click some other button on my JSP say "Extract" ?
I am using struts 1.1 for my application.

Can some one have the solution ??
Thanks in advance...


Regards ~
Prasad Sonawane, Member Technical Staff, CDAC, India.
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

Please make sure that you CarefullyChooseOneForum for your posts. This ensures you get desired response for your post. iframes are by no means connected to JSPs.

1. take a look at how "Post reply" works here.


SCJP, SCWCD.
|Asking Good Questions|
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Please do not start multiple copies of the same thing. You are already posted your thread here with an answer: http://www.coderanch.com/t/419782/HTML-JavaScript/display-website-page-JSP-textarea

Closing this one.

Eric
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to navigate through a web page displayed in iframe ?
 
Similar Threads
Populating values from iframe to parent page - Struts 2
changing elements in same Jsp page
How to retrieve the link clicked inside an iframe ?
Session timeout page inside iframe
How to display a website page in a JSP textarea ?