Results 1 to 7 of 7
  1. #1
    crikey is offline Senior Member
    Join Date
    Jul 2010
    Posts
    125
    Rep Power
    0

    Default How to get a list of files from an online URL

    Lets say i have a URL ("http://mysite.com/files/"), how can i list all the files and load them? The files will be .class files.

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    618
    Rep Power
    4

    Default Re: How to get a list of files from an online URL

    I guess when you get a request you have only link on files. You can parse this result and then get files for this links.
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,583
    Rep Power
    23

    Default Re: How to get a list of files from an online URL

    Is this a client-server problem? You are on the client PC and want a list of files from the server?
    That would require you to have code on the server that would create the list and return it to you.

  4. #4
    crikey is offline Senior Member
    Join Date
    Jul 2010
    Posts
    125
    Rep Power
    0

    Default Re: How to get a list of files from an online URL

    Ah thanks Norm. I guess i would make an ASCII file with URL's to the class locations :)

  5. #5
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,583
    Rep Power
    23

    Default Re: How to get a list of files from an online URL

    Where? On the server or on the PC?
    What code would make the file with the URL Strings?

  6. #6
    crikey is offline Senior Member
    Join Date
    Jul 2010
    Posts
    125
    Rep Power
    0

    Default Re: How to get a list of files from an online URL

    On the server. I would just manually update an online file with paths to the class locations

  7. #7
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,583
    Rep Power
    23

    Default Re: How to get a list of files from an online URL

    Then do an HTTP GET to the server for the file.

Similar Threads

  1. reading files from online applet
    By mickmos in forum Java Applets
    Replies: 0
    Last Post: 12-02-2010, 01:21 AM
  2. List of files and directories.
    By artemff in forum CLDC and MIDP
    Replies: 6
    Last Post: 01-02-2010, 04:06 PM
  3. how to get the list of war files
    By vijayabaskar in forum Java Servlet
    Replies: 0
    Last Post: 04-03-2009, 08:39 AM
  4. List all the files in the current jar
    By Srikanth_From_Moon in forum New To Java
    Replies: 0
    Last Post: 06-14-2008, 08:42 AM
  5. How can I get list of files in a directory
    By karma in forum New To Java
    Replies: 2
    Last Post: 12-14-2007, 11:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •