0
目前我的项目中使用简单的JSP和servlet以下数据包组织一个Struts2的项目(包)
1-Business package (Contains summed up methods from service package under a business rule)
2-Service package (Contains different services and their implementation - along with factory
method to call a specific implementation of each service)
3-Controller package (All the servlet controls ..)
3-Views (All the jsps)
4-CustomTags (Contain the Custom Tags)
5-Domain (Contains Domain objects)
现在我打算使用Struts2的你能告诉我,以实现在同一个项目什么包应该怎么发展介绍。我知道服务和业务包将保持完整,控制器包的情况如何?我应该把所有的行动放在控制器包里吗?任何建议将不胜感激。
这很有道理。 – MistyD