tags:

views:

458

answers:

2

I have a form that allows user to select a .csv file and post it to a servlet. However I am having dificullty getting a handle on the file from the Java Servet on the server any ideas?

A: 

A mistake I make myself and see other people make often is in HTML rather than you serverside. Make sure you have enctype="multipart/form-data" in your form tag.

If that's ok see this:

http://coldjava.hypermart.net/servlets/upload.htm

Vasil
+2  A: 

I recommend using Apache Commons FileUpload

kgiannakakis