I started developing one Blog Website based on Hibernate and Struts. I was wondering how to maintain the structure of the directory and files. That is, the presentation, hibernate DB access layers, controllers and business layers. Any suggestion?
Regards
Swar
I don’t think there is a single answer to this question but here is mine.
For a simple project without strong modularity requirements, I would use a single project.
For the project layout itself, I follow the Maven standard directory layout. For a webapp, this typically means something like this:
And I would use java packaging naming conventions to organize classes from the various layers:
com.acme.<app>.<module>.web.actionfor struts actionscom.acme.<app>.<module>.web.forms: for struts form beanscom.acme.<app>.<module>.service: for business services interfaces and implementationscom.acme.<app>.<module>.bo: for the business objectscom.acme.<app>.<module>.dao: for DAO interfacescom.acme.<app>.<module>.dao.hib: for Hibernate implementations of the DAOsBut for a small application, I would just skip the functional
<module>subdivision.Related questions