what is the difference between servlets and struts?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get the server information in a servlet?

763


Why servlet is faster than jsp?

642


How the typical servlet code look like ?

721


Is dispatcher servlet a singleton?

631


The code in a finally clause will never fail to execute, right?

687






how many jsp scripting elements are there and what are those?

648


Which method of the httpservletrequest object is used?

658


What’s the use of the servlet wrapper classes??

720


What is the servletconfig object?

613


What is difference between get and post method?

648


Explain the role of dispatcherservlet and contextloaderlistener.

701


Explain the servlet context.

685


Which java application server is the best?

647


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

2993


What are the different methods of session management in servlets?

611