• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP V/S SERVLET

 
prashanth mallikarjun
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whta r the advantages of Servlet over JSP?
 
hash eagle
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically servlet is faster than jsp since jsp needs to be compiled into servlet.
 
Cynthia Yao
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IT is only the first time you run the jsp, it need to compile to servlet. Do a search, there are a couple of thread discuss about this question
 
karl koch
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
you should use JSP more on the "gui" side, where you display html to a user and servlets for the working stuff.
it is easier to output html from a jsp as in a servlet (only if you dont you like using println("") with every line of html).
it is good practice to separate the display of data from the manipulation (somewhat ModelViewController)
karl
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!