1.1 What is the difference between servlets and JSP?

Servlets are components which run inside of a container and handle server requests (typically HTTP) in a request/response manner. JSPs are template pages that can be comprised of Java code and markup (HTML) code. A JSP is ultimately interpreted, converted to a servlet, compiled, and executed. With this in mind, you can technically get by using just JSPs; however, this practice is strongly discouraged, since it can lead to a very tightly-coupled and convoluted mess.If JSP page is modified, we don’t need to recompile and redeploy the project. The servlet code needs to be updated and recompiled if we have to change the look and feel of the application.

January 14, 2016

0 responses on "1.1 What is the difference between servlets and JSP?"

Leave a Message

Your email address will not be published. Required fields are marked *

About Us

Pradeep Academy is an online & Training institute To make learning easy, interesting, affordable and accessible to millions of learners across the Globe.
To create an alternative learning platform, using a unique learning methodology of live online interactive courses along with 24x7 support. We aim to empower our customers with skills which will help them get an edge in their careers and improve their lives.

Contact Us

Address :

#Hosabelaku Building, 3417/13, Near TTMC Bus Stop,, 30 Feet Service Road,

Vijaya Nagar, Bengaluru, Karnataka 560040
Email : [email protected]
Ph No: +91 8660907231
Web: https://academy.pradeepit.com
top
© Pradeep Academy.  Design & Developed by