Ehab Taleb wrote:
>
> hi
> dose any body knows how from a html to browse to a file on the system file
> and then upload/attache it to the server

As others will likely tell you, you should use a servlet for file
upload as opposed to a JSP page. One example is a servlet using the
MultipartRequest class described in Jason Hunter's Java Servlet
Programming, available at:

  <http://www.servlets.com/>


<plug>
Our InstantOnline Basic 3.0 Beta 1 also contains a servlet for
uploading a file to a temporary directory, and a set of custom
actions for moving or copying it to where you want it. You can
also use other InstantOnline Basic custom actions to add the
file name to a database, etc.

  <http://www.gefionsoftware.com/InstantOnline/>

</plug>

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com

===========================================================================
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to