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

Which java framework is most popular?

776


What are the mechanisms used by a servlet container for maintaining session information?

772


How httpservlet is different from the genericservlet?

792


Does servlet have main method?

905


If my browser does not support cookie, and my server sends a cookie instance what will happen?

838


I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>

2729


What are the different session tracking techniques?

956


Differentiate between get and post?

889


How does tomcat servlet container work?

815


What is the purpose of dispatcherservlet properties?

716


What are the uses of servlet

823


What is cookie in servlet?

780


What do you mean by annotations in servlet?

792


What do you mean by session tracking and also explain its techniques?

682


What do you mean by default initialization in java servlet?

860