• 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

When to use JSP, Servlet

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was going through the Sun tutorial on JSP and when to use JSP & Servlet http://developer.java.sun.com/developer/onlineTraining/JSPIntro/contents.html#JSPIntro2
I got an idea that we can service POSTs with Servlets and all GETs with JSP. Does it make sense?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That is not a particularly useful generalization.
IMHO you should think in terms of using servlets for computation intensive applications and JSP for supporting complicated HTML designs.
If you are the only Java programmer in a shop that does a lot of HTML, custom taglibs in JSP make sense.
Bill
 
reply
    Bookmark Topic Watch Topic
  • New Topic