Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP & Servlet Differences

 
pulijala hari
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I would like to know What can be done with Servlets that can not be done by JSP? and vice versa?

Could you please let me know this as this was asked in an interview for me?

regards,
hari
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has been discussed recently.
[ October 10, 2005: Message edited by: David O'Meara ]
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whatever you can do with JSP, Servlet can do that because ultimately JSP is converted into Servlet before execution and after compilation.

I am not sure whether JSP can do all servlet works.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not quite, a JSP also has access to things like Tag libraries and JSTL which are not available in Servlets. Some of these features can be accomplished in other ways in Servlets, but not all.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic