what is the difference between servlets and struts?
Answers were Sorted based on User's Feedback
Answer / asd
Servlet is a simple java class, and struts is framework but
it is used servlet as action class to controll over request
and response.
| Is This Answer Correct ? | 38 Yes | 8 No |
Answer / sandy
servlet is used to web based application.where as struts is
a framework it is easy to configure the validation part
comparing to servlet.
to built an web based application servlet take more amount
of time comparing struts.in struts we use action servlet
struts work under mvc architecture where servlet acts as a
controller part
| Is This Answer Correct ? | 19 Yes | 1 No |
Answer / abinaya
Struts is a tag framework used in .jsp, to simplify
programming of
often used servlet and jsp code. It's similar to JSF, or jsp
tags, you
include tag libraries, Struts libraries and .xml config
files and then
you can use tags in .jsp pages and create servlets from them.
You can use both normal and Struts servlets in one web
application, it
depends on you.
| Is This Answer Correct ? | 25 Yes | 15 No |
How servlet is created?
How many ways are available to ger RequestDispatcher object?
What is the difference in between the httpservlet and generic servlet?
What do you mean by httpservlet and how it is different from the genericservlet?
What do you mean by filter in servlet?
What is the difference between CGI and Servlet?
Why the container loads server at the application startup and how?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
Can we write a constructor for a Servlet class ? if yes how ? if no why not ?
Is tomcat a servlet container?
what is servlet chaining?
what is the difference between do get/dopost