Developing Web Applications with JavaServer Faces
If you want to build web applications with rich user interfaces, come read about the nuts-and-bolts of JavaServer Faces — a user interface framework that runs on the server side and renders the user interface back to the client! Includes plenty of code samples.
Check it out: http://http://java.sun.com/developer/technicalArticles/GUI/JavaServerFaces/