• 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 a file(on the internet) using servlets

 
author
Posts: 469
20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
Can anyone please tell me how to read a file using servlets, if the file is located on the internet ? The servlet and the file are located at two different locations and the server on which the file is located doesn't have any web server software installed.
If possible let me know the resources from where i can get more information about this problem.
thanks in advance
ashish sarin
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Systemically, you would have to have some means of referencing the file in order to access it. A simple path over the network seems the only alternative to the Webserver model. If you can't see/access the file over the network, it's probably 'cause your not supposed to!
 
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if you dont have any software installed, then you can not get the file.
without any server software the computer that holds the file is like any other computer hooked up to a network and you should not be able to get any data from this computer.
so to read the file install a server:
e.g. HTTP, FTP, RMI and so on. Then have the servlet load the file from this server
or go the other way and have the computer that holds the file put it on the servlet computer (but again, you need to install some kind of software)
k
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic