posted 21 years ago
In the J2EE specification clear description had given when to use Servlets,JSP and EJB.
This approach is called MVC(Model View Controller)
we should devide our application to MVC design,such as chop the entire application to presentaion layer ,web layer ,business layer and data layer.
Choose HTML/JSp presentaion layer,Servlets for web layer or tier,EJB for Business Layer(Session beans for action components(tipically performs business operations),entity beans to data components(tipically for database access pupose).By using this kind of apprach we can achive better coordination among layers and quick results
-krish