Please,

I sorry for my English and thanks for all contributions!!!!



Are you know how to implement an upload?

I want to upload files from clients to server machine.

I don't know how to manipulate the uploaded file from the server side.

Take a look bellow. It's a html file that will upload a file  to the server.

<HTML>
<form action="recarq.jsp">
 <input type=file  name="_arq">
 <input type=submit>
</form>
</HTML>

Now, take a look bellow. It's a jsp file that will receave an uploaded file.
Here is the problem. I just can take the uploaded file name. I want to take the 
content of the uploaded file to save on the server.
How can I do this?? Can you help me?

<%@ page import= "java.util.*" %>
<%
  String s= "";
  s = request.getParameter("_arq");
%>
<html>
<body>
<%=s%>
</body>
</html>


Thanks a lot!

Paulo Ebling,
Brazil - RS

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to