File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Question for frank carver .......... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Question for frank carver .........." Watch "Question for frank carver .........." New topic

Question for frank carver ..........

anand chawla
Ranch Hand

Joined: Oct 19, 2000
Posts: 91
Can anyone tell me as to when do we have to use servlets and when do we use jsp.
one differnce is that in jsp we can separate the content programming from content presentation.
but i would like to know different circumstances under which we prefer jsp over servlets or vice versa
paul sun

Joined: Dec 22, 2000
Posts: 28
The popular model seems MVC.
*Servlet - Mediator or Controller
*Jsp - View or Presentation Template
*Bean - Model or Data Handling, Business logic
For very very simple application, jsp is enough. For some kind of pattern or framework driven application, Consider MVC.
subject: Question for frank carver ..........
It's not a secret anymore!