Jump to content
xisto Community
Sign in to follow this  
zhong2006

Read File (.txt) On Another Website Using Jsp?

Recommended Posts

<%BufferedReader input = new BufferedReader(new FileReader("prueba.txt"));String line = "";while ((line = input.readLine()) != null) {	out.println(line);}output.flush();input.close();%>

Source https://experts.about.com/q/JSP-Java-Serverxt-file-JSP.htm
Additional example http://www.jguru.com/

Please post in the correct forum section next time. We have Programming > JSP for all JSP related question.

Thank you.

Share this post


Link to post
Share on other sites

Remote downloading

Read File (.txt) On Another Website Using Jsp?

 

Can I create a webpage (pageA) that would be able to read information from another website and then display that information on pageA?

 

I know it may be possible with text, but can this be done with images as well?

 

*pageA reads data from websiteB* (data includes text + images)*

*pageA displays the downloaded text + downloaded images on itself*

 

-reply by Relik

Share this post


Link to post
Share on other sites

How to read text data from a web page using Servlet or JSP

Read File (.txt) On Another Website Using Jsp?

 

How to read text data from a web page using Servlet or JSP's?

 

 

 

-reply by Sreenivas

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.