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 are the exceptions thrown by servlets? Why?
What is the difference between encodeRedirectUrl and encodeURL?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
What do you mean by singlethreadmodel interface?
Explain url encoding?
What is SingleThreadModel interface?
How do I use cookies to store session state on the client?
Which HTTP method is non-idempotent?
What are the life cycle methods of a servlet?
What are sessions in servlets?
How can we implement a jsp page?
What are the servlet events?
Which is the methods of generated servlet?
What is servlet? Explain
Why don't we write a constructor in a servlet?