M
Matt
I have a JSP page that allows to select a file, and it will displays
the file. However, it
has Error 404 in fileview2.jsp. What did I miss here? please help.
thanks!!
//fileview.jsp
<FORM ACTION="fileview2.jsp" method="POST">
<P><input type="FILE" name="filename">
<P><input type="submit">
//fileview2.jsp
<%
//Error 404: File not found: uploaddoc/C:/file.doc
String filename = request.getParameter("filename");
response.addHeader("content-type", "text/plain");
response.sendRedirect(filename);
%>
the file. However, it
has Error 404 in fileview2.jsp. What did I miss here? please help.
thanks!!
//fileview.jsp
<FORM ACTION="fileview2.jsp" method="POST">
<P><input type="FILE" name="filename">
<P><input type="submit">
//fileview2.jsp
<%
//Error 404: File not found: uploaddoc/C:/file.doc
String filename = request.getParameter("filename");
response.addHeader("content-type", "text/plain");
response.sendRedirect(filename);
%>