echo of pwd
Happy to become a member. I have a problem with a script I use to generate an expandable menu for folders that I use on a website. I need to inject the pwd or cwd into the path for the links to the file. Below is the line that handles this. I have put **** where I need the working directory placed.
href="view_file.php?file=****/<!--#echo var='relurl'-->"><!--#echo var="fullname" -->
I am not to familiar with java yet but I have tried several different variations to inject the directory but none has worked. Could anybody point me the proper direction so I may get this codded correctly? All help is greatly appreciated. jeff
Does PWD or CWD means the current working directory? What is the value that you really want to pass to the file parameter? can you give an example of its value?
Thanks for your quick reply. The line should return a value that gives the current working directory. Ex:
The line as posted above returns:
Which will not work. as I need the home_directory to complete the path.
When using Java Servlet or JSP you can get the real path where you application is stored on the disk using:
Is this what you are looking for?