Hi,
In models like MVC and
STRUTS (
framework), there is a good separation of presentation, busniess and persistence layers. Sometimes a developer wants to do some
operation on the data fecthed from persistence layer and
then pass it to the presentation layer. Question here is that, in which layer this operation is prefered to do?
In other words:
1: Fetch 100 records from database and save each record in a collection.
2: Call that collection in presentation layer (in
JSP) and display the record in tabular format.
Now before we save each record in collection, some operation is to be done on each record. Means, 1st do some operation on a record and then save it in collection. After saving all the records in a collection,pass that collection to the presentation layer, normally JSP.
Bye,
Viki.