What is the difference between JSP and Servlet?

Answer Posted / sss

JSP is mainly used for presentation only. A JSP can only be
HttpServlet that means the only supported protocol in JSP
is HTTP. But a servlet can support any protocol like HTTP,
FTP, SMTP etc.

Is This Answer Correct ?    22 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jsp and why it is used?

462


Perform a browser redirection from a jsp page?

527


How to get value from java to jsp page?

510


What's the difference between javabeans and taglib directives?

540


What is tld file?

493






Which jsp life cycle is in correct order?

515


Can you stop multiple submits to a web page that are initiated by clicking to refresh button?

493


How can we disable el?

524


How is jsp include directive different from jsp include action. ?

543


What is difference between javascript and jsp?

502


What is jsp technology?

529


Which package does a jsp api consist of?

495


What is jsp usebean?

509


What are different types of comments used in jsp?

508


What is a scriptlet in jsp and what is its syntax?

489