java 2 Answer(s) 4 years and 10 months ago
Posted in : Framework
August 12, 2008 at 1:41 PM
Difference between struts and springs.
Struts is a sophisticated framework offering the easy 2 develops, structured view and presentation layer of the MVC applications. Infacr Struts can be used as the presentation tier ins spring
Springs features strictly associate with presentation stuff. It offers Tiles to bring in reuse at presentation level. It offers Modules allowing the application presentation to segregate into various modules giving more modularity there by allowing each module to have its own Custom/Default Request Processor. Spring provides Aspect Oriented programming, it also solves the seperation of concerns at a much bigger level. It allows the programmer to add the features (transactions, security, database connectivity components, logging components) etc., at the declaration level. Spring framework takes the responsibility of supplying the input parameters required for the method contracts at runtime reducing the coupling between various modules by a method called dependency injection / Inversion of Control.
Struts is developed with a Front Controller and dispatcher pattern. Where in all the requests go to the ActionServlet thereby routed to the module specific Request Processor which then loads the associated Form Beans, perform validations and then handovers the control to the appropriate Action class with the help of the action mapping specified in Struts-config.xml file. On the other hand, spring does not route the request in a specific way like this, rather it allows to you to design in your own way however in allowing to exploit the power of framework, it allows you to use the Aspect Oriented Programming and Inversion of Control in a great way with great deal of declarative programming with the XML. Commons framework can be integrated to leverage the validation in spring framework too. Morethan this, it provides all features like JDBC connectivity, OR Mapping etc., just to develop & run your applications on the top of this.
Struts 2 is one of the best framework for developing the enterprise applications. Struts is popular framework among the developers. Struts was first released in the year 2001. Since then it was being used by developers to develop complex application. Now struts 2 is released which even more powerful. So, Struts is the best tool to develop web applications. You can use spring framework along with the struts.
Spring framework is glue to integrate all the frameworks that present today. Spring provides many features. You can use spring with your struts application.
My advice is to use Struts 2 and Spring framework in your application.
java hi im new to java plz suggest me how to master java....email@example.com
i want a field for date picker using java/java script
java create java program for delete and update the details,without using database, just a normal java program
java java online telephone directory i need coding for online telephone directory..by using java....pls help me
java how to edit text document by using java
then how to edit starting and ending of text document by using java
java different between java & core java
java java pattern code for a given words java pattern code for a given words pattern
java how can use sleep in java
which book learn of java language
java java How to set java Policy for applet using jdk 6
java why methods in java raise exceptions
Have a look at the following link:
java java code to search the nodes how to write the java code to search the nodes using routers
java different between java & core java
java java swing
Swing is a principal GUI toolkit for the Java programming language. It is a part of the JFC (Java Foundation Classes), which is an API for providing a graphical user interface for Java programs
java how to prepare the java
If you want to learn how to install java, creating and running a java program then go through the following links:
java what is the need of java if java is not there what will happen... work unless you have Java installed, and more are created every day. Java... to scientific supercomputers, cell phones to the Internet, Java is everywhere!
java 1.what type of inheritance supported in java.
2.what is the advantage of java over C++.
Java supports following... inheritance
Advantages of Java over C++:
1)Java is pure object oriented
java how to run applets in java
In Java you can use Applet viewer to run the applet. Read more at Java Applet Viewer tutorial page.
java what is javaJava is a programming language..., and business applications.
Advantages of Java:
* Java is simple, easy to design... programming languages.
* Java is object-oriented, that is used to build modular
java i need to draw a binary tree traversal in java applet