CON IL SECONDO METODO:
java.lang.String getFilesystemName(java.lang.String name)
Returns the filesystem name of the specified file, or null if the file was not included
in the upload.
RIPORTO IL CODICE CHE HO INSERITO NELLA SERVLET:
Sul browser mi visualizzacodice://OTTENGO IL FILESYSTEM NAME DEL FILE CHE HO MANDATO:IL FILE CHE HO MADATO SI CHIAMA a.jpg foto = multipartRequest.getFilesystemName("a.jpg"); //VISUALIZZO SUL BROWSER IL VALORE DI FOTO buf.append(foto);
null
ho provato anche a mettere come argomento passato a tale metodo il nome del campo di invio file del form
Foto: <INPUT TYPE="file" name="file" id="file" />
cioè la parola "file" ma da sempre null

Rispondi quotando