Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

what is the different between jsp and sevlet  RSS feed

 
sam liya
Ranch Hand
Posts: 1271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the different between jsp and sevlet?
i mean wh ywe use jsp than servlet?
 
Patel Chintan
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
aruna sameera wrote:what is the different between jsp and sevlet?
i mean wh ywe use jsp than servlet?


Basically both Jsp and servlet are same. As JSP is translated into servlet.
JSP is mainly used for your presentation part, means your GUI part, and servlet is used for your controller part or business logic part.
 
Dawn Charangat
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP was created to give better control for the web designers, because, primarily it would be them who designs the UI. The servlet being a Java object requires the web designer guy to have knowledge of both java as well as other web stuff to code it properly.
With JSP, it is more of web stuff [like html, javascript, css etc], and little bits and pieces of java code [which probably the web designer can live with !].

Anyhow, this JSP, on first invocation will be translated to a servlet java file, and then compiled to a java class by the webserver, transparent to the user.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!