waht is the main diference b/w servelts and JSP ?
Answer Posted / anurag joseph
there are minor difference btw these two.Servlet is used
for processing afterall containter is servlet engine.It
perform many task like load balancing,request
processing,generating image on fly.But if we want to
responce an html format than this is not efficient.thats
why jsp is needed.jsp is java inside Html and servlet is
like html inside java.JSP is used for graphical user
interface. it focus upon presentation not business logic
and processing.
| Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
What is java servlet?
What do you mean by annotations in servlet?
What is difference between GenericServlet and HttpServlet?
Explain servlet life cycle?
Is java servlet still used?
why we should override only no-agrs init() method.
What is http servlet?
What is the difference between jsp and servlet life cycle?
Can you send an authentication error from a servlet?
What are the difference between session and cookies in servlet? Explain
What is getservletcontext?
What are the important functions of filters?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
What’s the use of the servlet wrapper classes??
How can we include static files in the jsp page?