wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Question for frank carver .........." Watch "Question for frank carver .........." New topic
Author

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

anand chawla
Ranch Hand

Joined: Oct 19, 2000
Posts: 91
Hi,,,
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
Greenhorn

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.
Paul
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Question for frank carver ..........
 
Similar Threads
How to give alert message in servlet and redirected it to jsp page.
hi friends this is regarding Servlets, JSP, HTML and XML?
JSP becomes a servlet - implications
Can JSP and Servlets do everything doing by EJB
What Servlet can do which a jsp cant or viceversa ?