The place to manipulate bean properties is in the bean itself, not in the JSP. So, for example, if you need only the first name, create a getter on the JavaBean named getFirstName() that does whatever manipulation of the name property you need to do. Then in your JSP, simply put:
ok but in those cases the presentation layer is not in charge of that,meaning the JSP? you're not supposed to do changes for presentation in another layer...
Joined: Feb 15, 2005
A JavaBean used by the presentation layer is often referred to as a Transfer Object (TO) or sometimes a Data Transfer Object(DTO). The purpose of this type of object is to act as means of transferring data between the view and the model. Even though technically it's part of the model, it has to be used by both the model and the view. It is inescapable that it must present the data in a format that is acceptable to the view. Putting logic in this type of object to present data in a certain way is a commonly accepted practice, and is far preferable to muddying up your JSP with scriptlets to perform the same function.
Joined: Oct 18, 2006
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