目前我使用简单的 JSP 和 servlet 开发的项目有以下包
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 实现相同的项目,你能告诉我应该引入哪些包吗?我知道服务和业务包将保持不变,控制器包呢?我应该将所有动作都放在控制器包中吗?任何建议将不胜感激。