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

What are life cycle methods of a servlet?

590


Can we refresh servlet in client and server side automatically?

598


Is servlet synchronized?

607


Why do we need a constructor in a servlet if we use the init method?

522


What are the phases of servlet life cycle?

611






What is httpservlet class?

542


request parameter how to find whether a parameter exists in the request object?

579


What is meant by Servlet? What are the parameters of service method?

602


What is cookies in servlet with example?

523


What is pure servlet?

700


Why servlet is used as controller ? Not JSP? I want complete explation?

661


How can we create deadlock situation in servlet?

853


What is servlet and list its types?

546


How do you run a servlet?

548


Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com

1749