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 / twinkle
Servlet is a single instance multiple thread web
application in which HTML code can be included in java code.
JSP is also a web application in which java code can be
included in HTML code.
For compilation of servlet we need to close TOMCAT server
each n every time but for JSP's no need
EX:If u made any changes in program u need to close TOMCAT
server and then again start the server.But in JSP u just
need to click refresh tats it.
In servlets u need to write the whole class name but in JSP
u dont need to write whole name.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What are the mechanisms used by a servlet container for maintaining session information?
What are some disadvantages of storing session state in cookies?
what do you understand by url rewriting?
How can you create a session in servlet?
Why do we have servlet wrapper classes?
What is java servlet session?
Why do we use sendredirect() method?
What's the advantages using servlets than using cgi?
What is the difference between portlet and servlet?
What does the term localization refer to?
Why servlet is used as controller ? Not JSP? I want complete explation?
What's the use of servletcontext?
What is the structure of the http response
Write a hello world program using servlets.
Why is init() method is used in servlets?