whats the diff between jsp and servlets?
Answer Posted / rajashree
Both use server-side Java to dynamically generate web
pages. The source code to a JSP looks like HTML, with Java
embedded inside funny tags (*); the source code to a
servlet looks like Java, with HTML embedded in out.print
(...) statements. Both use the Servlet API to communicate
with the web server and the client. In fact, a JSP gets
compiled into a servlet, so they're almost identical in
terms of expressive power. The choice is, whether you're
more comfortable coding your pages in Java or in JSP-style
HTML; and since you can call a JSP from a Servlet and vice
versa, you don't have to make an either-or decision.
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is the main advantage of passing argument by reference?
Is object a data type in java?
Explain java coding standards for methods?
What are the skills required for core java?
What is difference between call by value and call by reference?
How can you generate random numbers in java?
What is the difference between JDK and JVM?
Why is java not 100% pure oops?
Explain about strings in java?
What is final, finally, finalize?
Can we override the private methods?
What is java util?
What is the lifetime and scope of a variable?
When do you call copy constructor?
What is meant by memory leak?