This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 12675
    
    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
Single Sign on
Which Scope to use in Bean
1) TIMESTAMP on jsp page and jsp compiled servlet
new to JSP