мой веб проект загружает файл на сервер (пока tomcat) и сохраняет путь к нему в MySQL(в формате UTF-8 VARCHAR(255)) далее я беру ссылку из SQL и вставляю ее в тег ссылки и ни один браузер ее не может обработать, НО если нажать правой кнопкой сохранить объект как то файл сохраняется что за ерунда? ссылка выглядит так D:/Program Files/Scince/Java/ProjIDE/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/FILE_HOST/data/edit.png
код
Код | <% if (request.getAttribute("Files") != null) { List<File> files = new ArrayList<File>(); files = (List<File>) request.getAttribute("Files"); for (int i=0;i< files.size() ;i++) { File curr_file = (File) files.get(i); %>
<td> <Form name="openform" method="post" action="DelFile"> <a href="<%= ( (curr_file.getContent() ==null)? "unknoun" : curr_file.getContent() ) %>"> <img src="img/Down.png" alt="Download file" height="34" width="34"> </a> <a href="<%= ( (curr_file.getContent() ==null)? "unknoun" : curr_file.getContent() ) %>"> <img src="img/edit.png" alt="Edit file" height="34" width="34"> </a> <input type="image" name="Submit" src="img/Del.png" height="34" width="34" value="upload2" title="upload this file"> <input type="hidden" name="CurrentUser" value=<%--= curr_users.getId() --%> >
</Form> <%--= ( (curr_file.getContent()==null)? "unknoun" : curr_file.getContent() ) --%> </td>
|
|