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 / abilash

servlet: its a java class so for every change we have to
compile the code to reflect the change.Mainly using for
writing business logics.

jsp:its a file, its automatically converted into a servlet
on deploying. We can't compile it explicitly.the changes
will get reflect by saving the file.Its mainly used for
presentation of data

Is This Answer Correct ?    235 Yes 41 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you explain in detail 'javax.servlet' package?

547


What is servlet in simple terms?

569


What is difference between GenericServlet and HttpServlet?

571


Define context initialization parameters.

574


What is cookies in servlet with example?

520






How do you configure a centralized error handler in servlets?

533


What is the directory structure of web application?

528


What is cgi and what are its drawbacks?

553


What is servlet and list its types?

544


Why is http protocol called as a stateless protocol?

537


What is Servlet API used for connecting database?

620


What are the differences between forward() method and sendredirect() methods?

549


What is the workflow of a servlet?

719


What is the difference between CGI and Servlet?

590


How would you create deadlock on your servlet?

622