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 a wrapper method?
What is a local block?
How do you reverse a string in java?
What is the difference between the boolean & operator and the && operator in java programming?
what is comparable and comparator interface?
Is Java a dying language?
What is bean? Where it can be used?
Explain notify() method of object class ?
What happens if an exception is not handled in a program?
What is a line break example?
What is the difference between processes and threads?
Explain about automatic type conversion in java?
Is a class an object?
How do you declare a variable?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?