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 / r b arumugam
Java Servlet is a Java File and is converted into .class
file. If there is any changes in Servlet we must compile
once again.
JSP is a HTML file and java coding is embedded into it. The
JSP page is automatically compiled. There is NO deplyment
descriptor file in JSP as web.xml
Servlet is fully java coding and JSP is a collection of
HTML,JSPtag,JSTL
Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
Explain web container.
How to find whether a parameter exists in the request object?
What is the difference between servlet and filter?
Elucidate servlet attributes and its scope?
Define servlet mapping?
What is the difference between the include() and forward() methods?
Explain how does JSP handle run-time exceptions?
Which application server is best for java?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What is a servlet context?
How to handle exceptions thrown by application with another servlet?
What is Servlet API used for connecting database?
Can we use threads in Servlets?
What is the difference between jsp and servlet life cycle?
How can the session in servlet can be destroyed?