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
What’s the difference between forward() and sendredirect() methods?
Difference between get and post in java servlets?
How is the get () method different from the post() method?
What are the life cycle methods of a servlet?
How native code can be used in a servlet?
Why the container loads server at the application startup and how?
How do I support both get and post from the same servlet?
Why is httpservlet declared abstract?
How can the session in servlet be destroyed?
List out the difference between ServletConfig and ServletContext?
What are the different session tracking techniques?
What are the disadvantages of storing session state in cookies?
What is servlet api used for conneting database?
Which java application server is the best?
Can you explain in detail 'javax.servlet' package?