Yesterday, three bugs have been modified, but it has been time for a day.
One of the bugs is multiple pages to call the same business class method. If the displayed logic is processed in the JSP page, then modify each page; but if you handle the logic of the display in the business class, then you only need to modify this one. The class is OK.
Here is the understanding of the MVC mode, and the V layer should not do any logic processing, including how to display logic; while the M layer is designed to be complete, do not only meet the current requirements, make a simple example:
Check the information for a business, where there is an attribute is the application time, because only the YYYYMMDD is only displayed in the page, then the M layer is best used.
TO_CHAR (A.Time, 'YYYY-MM-DD HH24: MI: SS') Time queries the second level, controlled the length displayed by the C layer; this is only necessary to modify the C layer when modified in the future.