aspose file tools
The moose likes Servlets and the fly likes Servlets and Java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Servlets and Java" Watch "Servlets and Java" New topic
Author

Servlets and Java

Gopinath Reddy
Greenhorn

Joined: Feb 26, 2004
Posts: 15
In my application i am writing my buisness logic in servlets. But we can write our buisness login in core java also. Actually what is the difference between writing buisness logic in java and in servlets.?
which one is better?
Jasmine kaur
Ranch Hand

Joined: Nov 25, 2003
Posts: 157
Hello,
Well servlets are server side programmes ,I mean that they listen the request and send the rseponse to client.Basically see it has been derived from all core java classes and we can use in a particular direction that is on server side .
Just read the servlets again , and if you have any questions do ask.
you are welcome.
Please see the documentation of servlets very well.
http://java.rrzn.uni-hannover.de/jug/servlets/tutorial/servlet_tutorial.html
thanks
jasmine


jasmine kaur
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6913
A good, maintainable design usually has hardly any processing in the actual servlet classes. All "business" processing is done in objects that neither know nor care whether they are running in a web application or a test harness.
Try it. Write your "logic" in separate classes, test your "logic" code thoroughly before you ever go near a servlet container. When you are happy that your business logic works, write a very thin servlet which calls your tested code. With any luck, your code will be much more reusable, and your test and development cycle should be much quicker.


A Convergent Visionary ~ Frank's Punchbarrel Blog ~ LinkedIn profile
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Servlets and Java
 
Similar Threads
whether this architecture is feasible
whether this architecture is feasible!!!!!!! to mike, tony and matthew ....sheriffs
Servlets Vs. EJB
single or multiple servlets
is possible