File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Difference between Servlet and JSP Interview question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Difference between Servlet and JSP Interview question" Watch "Difference between Servlet and JSP Interview question" New topic
Author

Difference between Servlet and JSP Interview question

Sandeep Awasthi
Ranch Hand

Joined: Oct 23, 2003
Posts: 597
What is difference between Servlet and JSP, can I use JSP where ever Servlet Can be used? Why struts uses ActionServlet why not ActionJSP?


Sandeep
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60057
    
  65

This question gets asked a lot. Please look through previous posts for the answers.

Short version: JSPs are most suitable for renderrng HTML views. They are not well-suited to performing processing. Best practices dictate that the combination of servlets (to do the processing) and JSPs to render the HTML is the best pattern to follow.
[ September 29, 2006: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between Servlet and JSP Interview question
 
Similar Threads
Difference between JSP and Servlet
jsp
jsp vs servlet
Servlet and JSP
JSP & Servlets