I am fairly new to web development. I am using Eclipse 3.3.2. Our Intranet uses the Struts framework and Apache Tomcat 5.5 server. Most of us are using Firefox 2 or 3, but not necessarily everyone.
I am working on a part of my company’s project management system that is accessed via our Intranet. Currently there is a page that shows details about specific projects. On this page there is a field that displays the location of documentation that is stored on a shared network drive.
One of my tasks is to make this field a link that a user can click on to view / download the documentation. The file paths can sometimes get very long and confusing. So I want to give the user inputting the path a way to browse to the doc and retrieve the path for the link that way.
My thought was to put the following in my jsp.
I don’t really want to upload the file, I just need the full path as a string. The problem is that it returns the file path with the drive letter I have mapped on my local machine.
G:\Systems Development\Projects\… ProjectDoc.doc
Not everyone will have the drives mapped to the same letters. Also this could be one of several shared drives, with no real standard location. Therefore I really need to have the full drive path for the link.
\\DriveName\shared\ Systems Development\Projects\… ProjectDoc.doc
I can’t just trim off the drive letter and replace it with the drive name, because I won’t know what drive the doc will be on, and like I said not everyone will have the same drive letters mapped.
Anyone have any solutions, or at least a direction to head?