• Post Reply 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Reading the contents in jsp

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear friends,

Can anyone give me some idea of how to read the content of a page in jsp?

Like I want to read the content(as shown while viewing it in the web browser) of index.html(and not the codes and tags of the index.html) in the website

http://abbeyworkshop.com/howto/java/readFile/index.html

Please if anyone can provide me with some valuable suggestions.



Thanking you,
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're probably better off moving that code to a servlet, otherwise your app will be difficult to maintain. In any case, you can easily read the contents of any page using the Apache Commons HTTP library:

http://jakarta.apache.org/httpcomponents/httpclient-3.x/methods.html
 
reply
    Bookmark Topic Watch Topic
  • New Topic