OOWeb is a lightweight, embedded HTTP server for Java applications that maps objects to URL directories, methods to pages and form/querystring arguments as method parameters.
This allows for unparalleled ease in creating, deploying and testing web applications and most importantly, it's fun to use! You can get a working (albeit very basic) web server up and serving dynamic content with just 5 lines of code and no configuration.
See Other Best Ftp, Http, Email & Other Network Servers Projects in Java: