What is the difference between jsp and servlet?
Answer Posted / namita
Jsp is defined as Java server pages.
Jsp and servlet both are server side programming language.
the diffence in b/w these two is Jsp is used for
presentation part and servlet is use to give the business
logic.
Servlet act as redirector also. it redirect your page as
per the business logic.
anyhow Jsp are compiled to servlet but Jsp comes in to
picture to separate out the presentation logic from the
servlet to make it loosely coupled.
Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
What is static import in java?
What are internal variables?
Give us the name of the list layoutmanagers in java?
What does singleton mean in java?
Why is singleton not thread safe?
What is a treeset in java?
What do you mean by ternary operator in java?
What is string [] args?
describe synchronization in respect to multithreading? : Java thread
Why main function is static?
List two java ide’s?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
When can you say a graph to be a tree?
Explain creating threads by implementing runnable class?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?