Retreive Absolute Path


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Retreive Absolute Path

  1. #1
    Join Date
    Jan 2005
    Location
    Bangalore
    Posts
    19

    Retreive Absolute Path

    Hi,

    How do i retreive the absolute path from other machines using JSP.

    Thanks in advance.
    Cheers,

    Lee

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    I'm not sure but wouldn't that get you into trouble with the SecurityManager...?
    eschew obfuscation

  3. #3
    Join Date
    Jan 2005
    Location
    Bangalore
    Posts
    19
    Hi,

    Thanks for the response.

    Actually im designing an intranet for my project wherein i give the provision for my team members to add new documents for the project.

    Acutually i'm using JSP, so i just wanted to know how do i retreive the path from one JSP(where my "file" tag lies) to another page(ie given in the "Form" tag of the first page).

    Usually I give request.getParameter to retreive the values to the next page. But this doesnot work in case of file path.

    Hope this answers your question.

    Thanks in Advance.
    Cheers,

    Lee

  4. #4
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560

    Url to a file

    I'm not sure if it is any help, but you can specify the url to a file on a
    machine like:
    String path="c:\\tmp\\aFile.txt";
    URL anURL=new URL("file: "+path);
    eschew obfuscation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center