• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

difference between jsp and servlet

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Master Rancher
Posts: 43045
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic