what is the difference between servlets and struts?

Answers were Sorted based on User's Feedback



what is the difference between servlets and struts?..

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

what is the difference between servlets and struts?..

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

what is the difference between servlets and struts?..

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

Post New Answer

More Servlets Interview Questions

What is a web application and what is it’s directory structure?

0 Answers  


Why HttpServlet class is declared abstract?

0 Answers  


Explain the methods of request dispatcher in servlet?

0 Answers  


How do I know if java is running on linux?

0 Answers  


How to pass a requrest object of one servlet as a request object to another servlet?

4 Answers   Verizon,


What is the use of httpservletrequestwrapper?

0 Answers  


What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

0 Answers  


What is ServletConfig object?

0 Answers  


What is the capacity the doget can send to the server?

0 Answers  


What do you mean by web applications?

0 Answers  


Why should we go for interservlet communication?

2 Answers  


How to read request headers from servlets?

0 Answers  


Categories