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

Actually There is no difference bw Servlet and jsp

Both are aimed to achive the same result but in normall
usuage ,we can select a jsp as a View and serlvlet as a
container Since we need to seperate the Presentation logic
from Controller part as per MVC 2 architecture.

The question it self is not correct because all the Jsp
would end up in a servlet at LAST.

Thanks
Rajesh
Rajeshr1988@gmail.com

Is This Answer Correct ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the life cycle methods of a servlet?

681


Which interface must be implemented by all servlets?

892


What are the uses of servlet

709


How to get the current httpsession object?

751


What is the difference between Servlets and Applets?

628






What is a server side include (ssi)

643


What's the difference between servlets and applets?

642


How do I use cookies to store session state on the client?

612


How to rectify errors in java servlet while compilation?

589


Explain the war file?

686


What is the difference between sendredirect() and forward() in a servlet?

619


How do servlets work?

638


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

663


How we can get ip address of client in servlet?

628


What are the life-cycle methods for a servlet?

628