You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
have access to post topics
communicate privately with other members (PM)
not see advertisements between posts
have the possibility to earn one of our surprises if you are an active member
access many other special features that will be introduced later.
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.
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?
__________________
Website: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - Blog: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
When using Java Servlet or JSP you can get the real path where you application is stored on the disk using:
Code:
getServletContext().getRealPath("");
Is this what you are looking for?
__________________
Website: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - Blog: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.