There are some requirements, though:
there should be a directory called WEB-INF (capitals!!!) containing a file called web.xml (this is your deployment descriptor for servlets, etc).
loose
Java classes should go into WEB-INF/classes
jarfiles go into WEB-INF/lib