0

i am implementing mail application with attachments using html and java servlets

Here's the html code

<input type="file" name="attachment" size="20" multiple>

in the servlets,

String attachments[]=  request.getParameterValues("attachment");

is returning null what other way can i use to implement this

Ravi Teja
  • 21
  • 1
  • 6
  • nopes that question was after you know the file to be uploaded my question is how to pass file select values to servlet and get them as Strings – Ravi Teja Mar 28 '13 at 14:02
  • The value of a file element is a file. The control displays a file name to the user so they know what they have selected, not so it can be sent to the server. – Quentin Mar 28 '13 at 14:08

0 Answers0