I'm working on a web application in java where I want to use ServletFileUpload class to upload my file. I've downloaded commons-fileupload-1.2.2.jar and added that jar trough project properties. I'm using jdeveloper 11g and weblogic server.
When I run the application I get : "java.lang.NoSuchMethodError: parseRequest".
here is my code:
List<FileItem> items;
items = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request);
As I understand my application is probably using older version of the library.
My question is how do I make my application use this new library I've downloaded? Can I do it in though Jdeveloper or I have to change something on the server??