RE: What's better, having one large servlet or many small ones?

2005-09-06 Thread Mark Benussi
Many small ones.

-Original Message-
From: Raueber Hotzenplotz [mailto:[EMAIL PROTECTED] 
Sent: 06 September 2005 10:50
To: tomcat-user@jakarta.apache.org
Subject: What's better, having one large servlet or many small ones?

Hello

Should I have one handler with many methods or more handlers with less
methods
(1-2)?

Thanks!



___ 
To help you stay safe and secure online, we've developed the all new Yahoo!
Security Centre. http://uk.security.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: What's better, having one large servlet or many small ones?

2005-09-06 Thread Jason Bell
Raueber

Keep in mind that one day it could be many people reading your code, so I 
would suggest you have many servlets doing specific things.  

Regardless of whether it's a servlet, jsp or Java application think of future 
prospects of your code.  Ideally you could hand it to anyone and they 
understand what is going on with the minimum of comments.

Regards
Jason Bell

 Should I have one handler with many methods or more handlers with less 
methods
 (1-2)?

--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: What's better, having one large servlet or many small ones?

2005-09-06 Thread Guernsey, Byron \(GE Consumer Industrial\)

Solely my opinion based on experience with 100's of servlets- it doesn't
matter.  If the application is complex enough to worry about this, get a
MVC framework like struts for better organization inside the servlet and
let it draw the distinctions between pieces of the application. 

Byron



-Original Message-
From: Raueber Hotzenplotz [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 06, 2005 5:50 AM
To: tomcat-user@jakarta.apache.org
Subject: What's better, having one large servlet or many small ones?

Hello

Should I have one handler with many methods or more handlers with less
methods (1-2)?

Thanks!



___
To help you stay safe and secure online, we've developed the all new
Yahoo! Security Centre. http://uk.security.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]