What is the difference between jsp and servlet?
Answer Posted / mahesh
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 ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the old name of java?
What happens when main () method is declared as private?
What is a priority queue java?
What are advantages of using Java?s layout managers than windowing systems?
Can we declare register variable as global?
What is the hashcode () and equals () used for?
What is the generic function?
What is immutable state?
how to split string in java?
What is a java string?
I want to persist data of objects for later use. What is the best approach to do so?
Explain with example the concept of constant variable in java.
Is java pass by value or pass by reference?
What is a get method?
Explain the difference between transient and volatile in java?