Here's something I've wanted to do countless times during JSP development:
Map map = ...; Object bean = BeanCreator.createBeanFromMap(map); // keys in map are now JavaBeans properties on beanOf course there's more you can do than that...
This framework creates java classes at runtime from client-supplied information. It's comparable to the Proxy class, but more powerful in two important ways:
Just get the jar file from the project page and add it to your classpath. You need JDK 1.3 or higher, but no other libraries. The API docs are here. Enjoy!