This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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
 
wood burning stoves
 
subject: Question for frank carver ..........
 
Similar Threads
JSP becomes a servlet - implications
Can JSP and Servlets do everything doing by EJB
hi friends this is regarding Servlets, JSP, HTML and XML?
What Servlet can do which a jsp cant or viceversa ?
How to give alert message in servlet and redirected it to jsp page.