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 / chandra
servlet: its a java class so for every change we have to
compile the code to reflect the change.Mainly using for
writing business logics.
jsp:its a file, its automatically converted into a servlet
on deploying. We can't compile it explicitly.the changes
will get reflect by saving the file.Its mainly used for
presentation of data.
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What do you mean by cgi and what are its drawbacks?
What are the phases of the servlet life cycle?
What are the differences between the servletconfig interface and the servletcontext interface?
How can the session in servlet can be destroyed?
Is servlet a server side scripting language?
How will two or three servlets interact or communicate with each other?
What is the difference between encodeRedirectUrl and encodeURL?
What are the life-cycle methods for a servlet?
If servlet receives multiple requests, how many objects will it create?
Is that servlet is pure java object or not?
Define the servlet mapping.
What is meant by cookies?
Explain servlet life cycle?
What is servlet and its types?
What is cgi?