you can't use template text in a servlet, although you can pass HTML through the HttpServletResponse.OutputStream object. Where does HTML come into play here? Here's a quick example of how you would pass an object from a jsp page to a servlet using the request object.
Ah, now I understand. There is no analogous operation build into the Servlet specification. You can either set each, or you could use bean reflection to write your own that does the same thing as the useBean action. Or you might be able to find a 3rd party implementation.
Personally, in such situations I don't use a bean at all; I use a Map wrapped in a class that provides the getters. I don't need setters at all as the name/values pairs are already captured in the Map instance.