• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

When to use JSP, Servlet

 
Sri Bala
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • 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?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic