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 / abilash
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 ? | 235 Yes | 41 No |
Post New Answer View All Answers
How can you start a jta transaction from a servlet deployed on jboss?
What are the types of an http request?
What is the use of servletconfig interface?
How to rectify errors in java servlet while compilation?
What is the difference between the include() and forward() methods?
What are the exceptions thrown by servlets? Why?
Describe in brief RequestDespatcher?
How can we perform any action at the time of deploying the project?
Explain the features are in servlet 3?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
Explain web application directory arrangement?
What is the difference between a generic servlet and http servlet?
Explain request dispatcher and its methods.
How to get the path of servlet in the server?
What do you mean by the servlet chaining?