My Software,My Dream—Forge a more perfect NMS product.
之前的架構(gòu)都沒有service這一層,jsp到manager(action),然后在manager中調(diào)用dao。 Action其實屬于web這一層,在web層直接調(diào)用dao是不妥的,所以新架構(gòu)中多了一層
Service。Service位于action和dao之間,action把從jsp中傳來的參數(shù)封裝好傳給dao。
我覺得最大好處就是不會在調(diào)用dao的同時又看到一大堆request.getParameter代碼。
posted on 2007-05-03 13:34 afunms 閱讀(109) 評論(0) 編輯 收藏
We'd much rather change the world instead of going along with it.
Powered by: BlogJava Copyright © afunms