users@glassfish.java.net

How to access fileName in javax.servlet.http.Part

From: Dominik Dorn <dominik.dorn_at_gmail.com>
Date: Mon, 12 Apr 2010 18:14:53 +0200

How is it possible to access the Attribute fileName of an uploaded
file in glassfish v3/servlet 3.0 ?

In my debugger I see that the part itself is a
org.apache.catalina.fileUpload.PartItem but thats not
part of the javaee6 web profile so I cannot cast it.

Which maven dependency do I need to add? is it commons-fileupload?

thanks,
dominik


-- 
[url=http://www.dominikdorn.com]Dominik Dorn[/url]
Tausche Deine [url=http://www.studyguru.eu] Lernunterlagen auf
http://www.studyguru.eu[/url]!