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 functions of an intercepting filter?
How can we upload the file to the server using servlet?
What is the GenericServlet class?
What is life cycle of Servlet?
How native code can be used in a servlet?
What do you mean by request dispatcher in servlet?
Which application server is best for java?
How can we refresh automatically when new data has entered the database?
Explain web application directory arrangement?
What is the directory structure of web application?
What are all the protocols supported by httpservlet?
How to get the current httpsession object?
What are session variable in servlets?
What is load-on-startup in servlet?
What are the different methods involved in the process of session management in servlets?