Upload file using Jetty and Maven

I want to use Jetty to upload file to my server I have tried the example from the Jetty documentation, but it doesn't work. It throws an exception:

java.lang.ClassNotFoundException: org.mortbay.servlet.MultiPartFilter

Answers


Since you say your using Eclipse Jetty the correct class package is:

org.eclipse.jetty.servlets.MultiPartFilter

Note that using the filter is not recommended for jetty-8 since the Servlet 3.0 spec added an alternative way to access this sort of information through the servlet API.


Need Your Help

Javascript Difference of any number

javascript function

i want to write a JavaScript function which finds the difference between the biggest and the smallest number. Input may be any number, so I use arguments.

Remove even numbers from an ArrayList

java collections arraylist

I have to create a method which has an ArrayList; I need to remove even numbers from this ArrayList. I have written code for that but there is a logical error which I couldn't identify.