aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "When to use JSP, Servlet" Watch "When to use JSP, Servlet" New topic
Author

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 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

Joined: Mar 22, 2000
Posts: 12683
    
    5
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

Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: When to use JSP, Servlet
 
Similar Threads
JSP Architecture
1) TIMESTAMP on jsp page and jsp compiled servlet
Which Scope to use in Bean
new to JSP
Single Sign on