• Post Reply Bookmark Topic Watch Topic
  • New Topic

difference between jsp and servlet  RSS feed

 
ajay verma
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as i know jsp after compilation becomes servlet code .so why don't we use servlet instead of jsp.what is the extra feature in jsp so we use jsp for front controlling .is it beacause of user interface or something others in the jsp?
kindly guide me!



thank you
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you used both JSPs and servlets to create HTML pages? They lead to very different ways of development. Using servlets one ends up with code that is hard to maintain, and tends to mix the application logic and presentation layers - something that's bad practice and shouldn't done any more these days. You might want to read this JavaRanch Journal article on how servlets and JSPs can be combined for vastly better designed, and much more maintainable, web apps.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!