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 / aarti
servlet Jsp
1
servlets are java classes jsp is not
2
consist of an html file
for static content &java file contains java code
for dynamic content embeded directly to
in an html page by
using special tags.
| Is This Answer Correct ? | 67 Yes | 65 No |
Post New Answer View All Answers
How does Cookies work in Servlets?
What do you mean by singlethreadmodel interface?
Which method of the httpservletrequest object is used?
Why do we have servlet listeners?
Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!
Explain the difference between jsp and servlet?
Explain the servlet context.
Why doesn’t a servlet include main()?
What is a servlet context object?
Elucidate servlet attributes and its scope?
Write a hello world program using servlets.
Explain servlet.
What is the use of send redirect () method?
How do we call one servlet from another servlet?
What is difference between get and post method?