Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

use of servlets over jsp's

 
raghuram bikkani
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the use of servlets when jsp's are already there
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the design pattern called MVC.
Do you want to put all the logic in a JSP file ?
Good luck then.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64970
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why use a wrench when a screwdriver works better?

Each mechanisms has uses for which they are best suited, and the most accepted patterns for web applications use both JSPs and servlets to their best advantages.

For more details google for the term "model 2" with regard to web application structure and design.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why use a wrench when a screwdriver works better?

I wish I knew poetry
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic