• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP/Servlets

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Please could you in clear terme tell me the difference between JSP and Servlets and the advantages of each. Also could you let me know what the advantages of JSP are over ASP and vice versa
 
Bartender
Posts: 783
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think this question is more appropriate in the "Servlets and JSP's" forum, so I'm moving it there.
-Peter
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just as a start,

A JSP is an 'easier' way to write a servlet. JSP's are compiled, and end up as servlets that output HTML. So JSP's are used as a presentation technology.

Servlets "extend the functionality of the web server". What this means in english, is that you can write a servlet that does no actual HTML output.. but simply act as a CGI to accept (for example) a bunch of form data, push it into a database, and then redirect to a response page.

ASP vs. JSP ?? That oughta be fun.
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can a bean replace a servlet? Which one is better?
 
reply
    Bookmark Topic Watch Topic
  • New Topic