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


Please Help Members By Posting Answers For Below Questions

What is generic servlet class?

609


Differentiate between the get and post method

575


What is the difference between the servlets and cgi programs?

561


What is the type of method for sending request from http server?

606


What is URL Encoding?

632






Can we use the constructor, instead of init(), to initialize servlet?

595


How forward () method is different from send redirect () method?

524


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

557


How do cookies work in servlets?

589


What is httpservlet and how it is different from genericservlet?

617


What does the term localization refer to?

594


Explain servlet events?

570


Why session tracking is needed?

594


Which is the methods of generated servlet?

690


What are different ways for servlet authentication?

575