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 operator overloading. Is it is supported in java?
Which list is sorted in java?
If goto and const is reserve words than why it is not work in java?
Is special character in java?
What is the difference between the size and capacity of a vector?
How to change value in arraylist java?
Explain the difference between arraylist and linkedlist in java?
How many bits is a string in java?
What do you mean by data type?
How is it possible for two string objects with identical values not to be equal under the == operator?
Is char * a string?
Can we define private and protected modifiers for the members in interfaces?
What do you mean by Function Overloading in java?
What are different access specifiers in java? Explain
Explain about method local inner classes or local inner classes in java?