File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes When to use JSP, Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "When to use JSP, Servlet" Watch "When to use JSP, Servlet" New topic

When to use JSP, Servlet

Sri Bala
Ranch Hand

Joined: Mar 06, 2001
Posts: 63
I was going through the Sun tutorial on JSP and when to use JSP & Servlet
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

Joined: Mar 22, 2000
Posts: 13037
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.
I agree. Here's the link:
subject: When to use JSP, Servlet
It's not a secret anymore!