create file path

[b]for(Iterator k = files.iterator(); k.hasNext(); ){

String fname = (String)k.next();

<tr><td><a href="/resin-2.1.14/webapps//temp/<%=fname %>"><%= fname %></a></td></tr>

}[/b]

I have written above code to display list of files in my 'temp' directory.

here's the file path for 'temp' DIR

C: > resin-2.1.14 > webapps > temp > 'fname'

WHen i run this code it always says the 'file cannot be found' even though it exists.Can someone pls tell me what i am doing wrong?

what i want to do is when somone hit the link just open up the file in that file path.

Is this the correct way to do it?

thx in advance.

[851 byte] By [kuhasaa] at [2007-11-26 18:51:23]
# 1
Your URL points to an unexisting file. It's looking for /resin-2.1.14/webapps//temp/ under your web-app root folder. Try using temp as relative path.
Peetzorea at 2007-7-9 6:25:30 > top of Java-index,Java Essentials,New To Java...