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 is generic servlet class?
Differentiate between the get and post method
What is the difference between the servlets and cgi programs?
What is the type of method for sending request from http server?
What is URL Encoding?
Can we use the constructor, instead of init(), to initialize servlet?
How forward () method is different from send redirect () method?
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
How do cookies work in servlets?
What is httpservlet and how it is different from genericservlet?
What does the term localization refer to?
Explain servlet events?
Why session tracking is needed?
Which is the methods of generated servlet?
What are different ways for servlet authentication?