Reputation: 7133
Is it a good practice to put all servlets in one package ? And if it so, is there any convention of standard practices for naming servlet package?
Upvotes: 0
Views: 64
Reputation: 8201
No, it is not necessary to do so. In fact there is no standard naming convention for servlets. You can choose your naming convention based on your logic and architecture.
Classes are typically arranged by technical and/or functional domain. So the servlet could be in a package.
com.xyz.employee.web
(all the web-related stuff of the app), orcom.xyz.employee.salary
(all the salary-related stuff of the app), orcom.xyz.employee.web.salary
(all the salary-related stuff of the web technical domain), orcom.xyz.employee.salary.web
(all the web-related stuff of the salary-related functional domain).Extracted from standard naming convention for servlet package?
Shishir
Upvotes: 1
Reputation: 5097
The accepted answer in this thread might help you:
standard naming convention for servlet package?
Also, follow the standard naming conventions of oracle.
http://www.oracle.com/technetwork/java/namingconventions-139351.html
Upvotes: 1