File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
anand chawla
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic