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

1 in jsp we can edbed the code in html tag even we can
create on tag. in servlet we must create java files .

2. for jsp there is no deployment mean web.xml is required
but servlet it required.
3 fast development in jsp but in servlet d process is long .
4.there is diffrence in compilation process..

Is This Answer Correct ?    26 Yes 40 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by deployment descriptor?

634


What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

696


How can you create a session in servlet?

676


Can we refresh servlet in client and server side automatically?

660


Difference between get and post in java servlets?

630






What is URL Encoding?

701


What are the different ways we can maintain state between requests?

665


Can we override destroy method in servlet?

607


How does java thread pool work?

634


What is servlet looping or chaining?

755


What is setattribute in servlet?

632


How forward () method is different from send redirect () method?

601


What are the different mode that servlets can be used?

644


What are the kinds of http requests?

687


What are the difference between RMI and Servlets?

1134