What I want to do now is to put in the JSP-page links to a page (viewfile) which shows the file in question. So I need links off the form {base}/viewfile?name=filename. Therefore I should use the
<html:link> tag:
When I try the code below I get an exception:
javax.servlet.ServletException: Cannot create rewrite URL: java.net.MalformedURLException: Cannot retrieve ActionForward named viewfile?file=<%= files[i]%>
What can I do about it? (note that the rest of the code works well; if I remove the <html:link> tags, i get a listing of the filenames.
<% String[] files = (String[])request.getAttribute("filenames"); for (int i = 0; i < files.length; i++){ %> <html:link forward="viewfile?file=<%= files[i]%>"><%= files[i]%></html:link> <% } %>
Thanks for the hellp!
_________________________________________________________________
Koop geen kat in een zak. Probeer alles 14 dagen bij jou thuis. http://linkstat.neckermann.de/go.mb1?benl_11294
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]