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
why we should override only no-agrs init() method.
What are advantages of servlets over cgi?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
What's the use of servletcontext?
What are the different ways we can maintain state between requests?
Which HTTP method is non-idempotent?
How do you configure a centralized error handler in servlets?
What is servlet container. how it works?
How does Cookies work in Servlets?
Difference between get and post in java servlets?
What are the drawbacks of cgi?
Can you explain in detail 'javax.servlet' package?
What is setattribute in servlet?
Which interface must be implemented by all servlets?
How servlets are deployed in java?