what is the difference between servlets and jsp?

Answers were Sorted based on User's Feedback



what is the difference between servlets and jsp? ..

Answer / sanjay deorari

JSP is used mainly for presentation only. A JSP can only be
HttpServlet that means the only supported protocol in JSP is
HTTP. But a servlet can support any protocol like HTTP,FTP,
SMTP etc.

Is This Answer Correct ?    15 Yes 4 No

what is the difference between servlets and jsp? ..

Answer / j

in Servlet, presentation logic(HTML) is embedded in java
code (between out.println()). whereas in JSP, javacode is
embedded within HTML.

one more thing is while compilation, servlets will compile
and form .class file. whereas JSP will undergo a
translation phase. During which its converted into Servlet
first and the compiled to .class file.

Is This Answer Correct ?    13 Yes 4 No

Post New Answer

More J2EE Interview Questions

What is the latest framework in java?

0 Answers  


Describe secure socket layer (ssl)?

0 Answers  


What are the modules of j2ee?

0 Answers  


What is java ee server?

0 Answers  


What is the use of method saveorupdate()?

0 Answers  






to update a batch in a table in jdbc which method of statement object is used

1 Answers  


What is distributed application?

0 Answers  


What are the j2ee technologies?

0 Answers  


What is java netbeans?

0 Answers  


What is java servlet container?

0 Answers  


What is callback methods Component methods called by the container to notify the component of important events in its life cycle?

0 Answers  


Which implicit object in jsp is synchronized?

5 Answers  


Categories