what is the difference between Servlet and JSP?Advantage of
JSP over Servelt?Any concept present in JSP which we cant
implement in Servlet?

Answer Posted / d.sharath

servlet: its a java class so for every change we have to
compile the code to reflect the change.Mainly using for
writing business logics.


in jsp java code directly embeded into the html code
in jsp contains the ExpressionLanguage if in our
application development use EL to reduce the application
development time

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can servlet have a constructor ?

674


How can we achieve transport layer security for our web application?

659


If servlet receives multiple requests, how many objects will it create?

920


What do you mean by deployment descriptor?

632


How do you create a cookie using servlet?

671






What are the steps that are required to handle the multi-threading?

689


Explain the difference between a web server and a web container?

597


Why the container loads server at the application startup and how?

657


What is the dispatcher servlet?

601


What are the advantages of cookies?

709


Why are http servlets used in programming?

631


What is servlet invoker?

672


What are life cycle methods of a servlet?

666


How can a servlet be used to generate plain text instead of html?

615


What if you need to span your transaction across multiple servlet invocations?

655