Looking for advice. To render my JSPs I am placing objects as request attributes and accessing them that way. Sometimes I need special methods that my pojos (most of which are hibernate) currently dont have. I would rather not add special formatting methods, etc to my pojos. Instead I would like to wrap the pojos with some type of view bean. Is there a recommended pattern for doing this?
Tom Reilly wrote:How about writing a class that has static methods that provide the special formatting?
The problem with that approach (unless the methods are mapped to EL functions) is that general methods cannot be called from the EL. And resorting to scriptlets just to avoid more modern methods isn't a valid approach.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Design pattern for setting request attributes?