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

. The main difference between them is, In servlets both the
presentation and business logic are place it together.
Where as in jsp both are saparated by defining by java
beans .
In jsp's the overall code is modulated so the developer
who deesn't know about java can write jsp pages by simply
knowing the additional tages and class names.
One more important to be considered is servlet take less
time to compile. Jsp is a tool to simplify the process and
make the process automate.

Both are webapplications used to produce web content that
mean dynamic web pages. Bot are used to take the requests
and service the clients.

Is This Answer Correct ?    302 Yes 74 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What’s the difference between forward() and sendredirect() methods?

574


Difference between get and post in java servlets?

548


How is the get () method different from the post() method?

537


What are the life cycle methods of a servlet?

593


How native code can be used in a servlet?

3520






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

581


How do I support both get and post from the same servlet?

696


Why is httpservlet declared abstract?

582


How can the session in servlet be destroyed?

644


List out the difference between ServletConfig and ServletContext?

600


What are the different session tracking techniques?

681


What are the disadvantages of storing session state in cookies?

629


What is servlet api used for conneting database?

700


Which java application server is the best?

548


Can you explain in detail 'javax.servlet' package?

549