master_programmer
asked on
how to add variable file name to <a herf>
Hi
what i want to do is to add link to afile in my jsp page, the path of my files are constant for example
"c:\uplods" , but the file name may change , how i can concatenat the path with the file name so the user can click on the filename and the file opend
<a hert="c:\uploads"> filename </a>
what i want to do is to add link to afile in my jsp page, the path of my files are constant for example
"c:\uplods" , but the file name may change , how i can concatenat the path with the file name so the user can click on the filename and the file opend
<a hert="c:\uploads"> filename </a>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes i am using tomcat and my web site is local, what do you mean by:
create a mapping to that directory, and then use a relative path.
create a mapping to that directory, and then use a relative path.
What webserver do you use? Tomcat? If so you can simply create a mapping to that directory, and then use a relative path.