Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

How to navigate through a web page displayed in iframe ?

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Report post to moderator
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...
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not start multiple copies of the same thing. You are already posted your thread here with an answer: https://coderanch.com/t/419782/HTML-JavaScript/display-website-page-JSP-textarea

Closing this one.

Eric
 
So I left, I came home, and I ate some pie. And then I read this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic