Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Read File (.txt) On Another Website Using Jsp?
zhong2006
post Oct 6 2006, 12:36 PM
Post #1


Newbie
*

Group: Members
Posts: 0
Joined: 3-October 06
Member No.: 30,997



in my jsp program,i need to read a file (.txt) on another website,how can i do this?

thanks a lot.
Notice from jlhaslip:
shorten title
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Oct 6 2006, 02:54 PM
Post #2


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,487
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



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


Source http://experts.about.com/q/JSP-Java-Server...xt-file-JSP.htm
Additional example http://www.jguru.com/forums/view.jsp?EID=536740

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

Thank you.
Go to the top of the page
 
+Quote Post
iGuest
post Jan 13 2008, 08:30 PM
Post #3


Hail Caesar!
*********************

Group: Members
Posts: 5,876
Joined: 21-September 07
Member No.: 50,369



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
Go to the top of the page
 
+Quote Post
iGuest
post Jul 17 2008, 02:55 PM
Post #4


Hail Caesar!
*********************

Group: Members
Posts: 5,876
Joined: 21-September 07
Member No.: 50,369



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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. File Backups from cpanel(12)
  2. Transfering My Website From Trap17.com To Computinghost(5)
  3. Help With Ftp And Downloading File(1)
  4. My Website Is Still Not Back Even Though It Says Active(10)
  5. Website Is Frequently Down(7)
  6. How Do I Log Into My Website To Edit It?(3)
  7. How Can I Optimize Loading Time Of My Website?(13)
  8. No Website Configured At This Address(4)
  9. Can't Upload .htaccess And .mdu File...(5)
  10. What Is The Path Of File Uploaded In Etc Folder?(2)
  11. Setting Permissions With Php File Uploader(6)
  12. Can't Access My Website.(1)
  13. Can't Login To Cpanel And The Computinghost Website [resolved](6)
  14. Help With Accessing Website(4)


 



- Lo-Fi Version Time is now: 11th October 2008 - 04:36 AM