where do you put your Servlets / JavaBeans?

So do you put your Servlets and JavaBeans in the same package or do you always keep them seperate? And in your names do you put in the word servlet/bean to further help identify the object? (ie controllerServlet, customerBean)
[233 byte] By [javaksa] at [2007-10-3 2:53:53]
# 1

> So do you put your Servlets and JavaBeans in the same

> package or do you always keep them seperate?

If I write a servlet at all, it's in a separate package from the beans. Most of the time, I'm using the framework's servlet implementation and writing actions/controllers (separated from beans).

> And in your names do you put in the word servlet/bean to

> further help identify the object? (ie controllerServlet, customerBean)

No, but that's only by preference. I don't think there's a compelling reason not to.

~

yawmarka at 2007-7-14 20:42:57 > top of Java-index,Other Topics,Patterns & OO Design...
# 2
Servlets are in a package separate from beans, because they're part of the web tier.Beans usually belong in other layers (e.g., model, dao, etc.)I usually add "Servlet", but not "Bean".%
duffymoa at 2007-7-14 20:42:57 > top of Java-index,Other Topics,Patterns & OO Design...