File Read using Servlet

Hi,I need to read the contents of the file from the local system and store the contents of the file in the server.Can any one give me an idea how to do this using servlets
[192 byte] By [mclarena] at [2007-10-3 8:10:42]
# 1
servlets are run on the server, not on the client machine. you can not - as far as I know - use a servlet to access the hard drive of a client machine. Now if you were to use an applet ...
Navy_Codera at 2007-7-15 3:15:07 > top of Java-index,Java Essentials,New To Java...
# 2

From jsp, i use a file control to select the file.

I need to read the content of the file and store the contents in the server.

How can i do this.

jsp:

<input type="file" name="fileName">

say the contents of the file be: sfdjlfjdsfjdsjfdsjfljdsfl.

I need to read the contents of the file selected in the jsp page and store the contents in the server. How can i do this.

mclarena at 2007-7-15 3:15:07 > top of Java-index,Java Essentials,New To Java...
# 3
Try this search: http://www.google.com/search?q=servlet+file+uploadIt seems the first hit explains it.Mike
bellyrippera at 2007-7-15 3:15:07 > top of Java-index,Java Essentials,New To Java...