what is the difference between servlets and jsp?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Why java is interpreted language?

456


What are the components of j2ee?

451


What is asant?

565


What is enterprise information system?

545


What is application client module?

533






What are the components and containers in java?

497


Why is java considered dynamic?

553


What are container services?

532


Why is java robust?

649


What is repaint in java?

498


What are the components of J2EE application?

518


What is build file?

521


What does j2ee stand for?

478


Is c++ more secure than java?

499


What is java mobile?

484