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
Explain request dispatcher and its methods.
What are the types of protocols supported by httpservlet ?
What do you mean by request dispatcher in servlet?
Describe the phases of servlet lifecycle?
What is a web application and what is it’s directory structure?
Why is Servlet so popular?
What is called Session Tracking?
Can we override servlet service method?
what is multiple server?
What are the steps that are required to handle the multi-threading?
Why session tracking is needed?
What are the kinds of http requests?
How can we create deadlock situation in servlet?
What are the mechanisms used by a servlet container for maintaining session information?
Can you refresh servlet in client and server-side automatically?