java - struts controller and service layer? -


the existing application working on, action classes interact dao classes directly.

would better action classes, invoke service layer classes(businessfacade) in turn invoke dao?

is better develop layer between action classes , dao layer?

it's better because in way can separate business logic (the logic not related naviagtion matters) possible reuse.

if separate you'll able reuse business logic in non web application.

the data access layer intended layer objects persisted to, , restored from, abstract storage , actually, specially in case of rdbms persistence, may implemented orms, can see business logic layer orm persist objects. prefer merge business logic orm, in case rather front end framework.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -