DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

The Latest Data Topics

article thumbnail
Easy RabbitMQ Messaging with EasyNetQ
EasyNetQ makes RabbitMQ messaging a cinch. Learn how to get started with EasyNetQ in this great tutorial.
October 16, 2015
by Moe Long
· 10,098 Views · 2 Likes
article thumbnail
Data Transfer With SCTP
Check out how SCTO+P is able to handle user data transfers with DATA and SACK chunks.
October 15, 2015
by Tsvetomir Dimitrov
· 7,878 Views · 3 Likes
article thumbnail
Microservices and Kerberos Authentication
How to use Kerberos authentication with microservice architectures and API gateways.
October 6, 2015
by Jethro Bakker
· 18,998 Views · 7 Likes
article thumbnail
Memory Layout of Multi-Dimensional Arrays
Multi-dimensional arrays are really fascinating for developers, and influence memory layout.
October 2, 2015
by Eli Bendersky
· 20,839 Views · 8 Likes
article thumbnail
Deal With Multi-Tenant Data in Solr
Different techniques can be used to handle multi-tenant data in Solr. This article discusses routing techniques you can use depending on the size and number of shards.
October 2, 2015
by Rafał Kuć
· 7,422 Views · 6 Likes
article thumbnail
The Limitations of the IoT and How the Web of Things Can Help
Understand the limitations of the Internet of Things and how the Web of Things can help build an application layer for the IoT.
September 28, 2015
by Dominique Guinard
· 27,303 Views · 6 Likes
article thumbnail
Problems Solved by IoT
We spoke with 20 executives across the IoT space about problems the Internet of Things are addressing.
September 24, 2015
by Tom Smith DZone Core CORE
· 37,126 Views · 5 Likes
article thumbnail
Microservices Versus Microsegmentation
An exploration of the difference between the concepts of microservices and microsegmentation.
September 17, 2015
by Lori MacVittie
· 7,107 Views · 5 Likes
article thumbnail
Optimizing a Hashing Strategy
Using two strategies in combination you can develop new hashing strategies to improve performance without having to use more memory or much more CPU.
September 16, 2015
by Peter Lawrey
· 13,986 Views · 1 Like
article thumbnail
STRUTS 2 vs SPRINGMVC: Know the Difference & Choose the Best One Based On Your Requirements
Apache Struts 2 and SpringMVC, these two are the most popular and much talked about Java web frameworks today. Many of you might have worked with both of these frameworks, but which is one is better to use? What are the basic differences between both of these frameworks? Well, Apache Struts 2 is an elegant and extensible framework that is used for creating enterprise-level Java web applications. It is designed to streamline the development cycle, starting from building to deployment and maintenance of the application. In Struts, the object that is taking care of a request and routes it for further processing is known as “Action”. On the other hand, Spring MVC is a part of a huge Spring framework stack containing other Spring modules. This means that it doesn’t allow developers to run it without Spring, but the developers can run the Spring Core without Spring MVC. The Spring MVC (Model View Controller) is designed around a DispatcherServlet, which dispatches the requests to handler with configurable handler mappings, view resolution and theme resolution. While the objects responsible for handling requests and routing for processing in Struts called an Action, the same object is referred as Controller in Spring Web MVC framework. This is one of the very first differences between Spring MVC and Struts2. Struts 2 Actions are initiated every time when a request is made, whereas in Spring MVC the Controllers are created only once, stored in memory and shared among all the requests. So, Spring Web MVC framework is far efficient to handle the requests than Struts 2. If we talk about the features, Struts 2 and Spring MVC framework caters different level of business requirements. Let’s take a look at features offered by both of these frameworks. Struts 2 features Configurable MVC components, which are stored in struts.xml file. If you want to change anything, you can easily do it in the xml file. POJO based actions. Struts 2 action class is Plain Old Java Object, which prevents developers to implement any interface or inherit any class. Support for Ajax, which is used to make asynchronous request. It only sends needed field data rather than providing unnecessary information, which at the end improves the performance. Support for integration with Hibernate, Spring, Tiles and so on. Whether you want to use JSP, freemarker, velocity or anything else, you can use different kinds of result types in Struts 2. You can also leverage from various tags like UI tags, Data tags, control tags and more. Brings ample support for theme and template. Struts 2 supports three different kinds of themes including xhtml, simple and css_xhtml. On the other hand, Spring MVC framework brings totally different set of features. Spring MVC features Neat and clear separation of roles. Whether it is controller, command object, form object or anything else, it can be easily fulfilled with the help of a specialized object. Leverage from the adaptability, non-intrusiveness and flexibility with the help of controller method signature. Now use existing business objects as command or form object rather than duplicating them to extend the specific framework base class. Customizable binding and validation will enable manual parsing and conversion to business objects rather than using conventional string. Flexible mode transfer enables easy integration with the latest technology. Customizable locale and theme resolution, support for JSPs with or without Spring tag library for JSTL and so on. Leverage from the simple, but powerful JSP tag library known as Spring tag library. It provides support for various features like data binding and themes. Of course, Struts is one of the most powerful Java application frameworks that can be used in a variety of Java applications. It brings a gamut of services that includes enterprise level services to the POJO. On the other hand, Spring utilizes the dependency injection to achieve the simplification and enhance the testability. Both of these frameworks have their own set of pros and cons associated with it. Struts framework brings a whole host of benefits including: Simplified design Ease of using plug-in Simplified ActionForm & annotations Far better tag features OGNL integration AJAX Support Multiple view options and more However, the only drawback with Struts 2 framework is that it has compatibility issues and poor documentation. On the other hand, Spring MVC provides benefits like: Clear separation between controllers, JavaBeans models and views that is not possible in Struts. Spring MVC is more flexible as compared to the Struts. Spring can be used with different platforms like Velocity, XLST or various other view technologies. There is nothing like ActionForm in Spring, but binds directly to the domain objects. Code is also more testable as compared to the Struts. It is a complete J2EE framework comprising of seven independent layers, which simplifies integration with other frameworks. It doesn’t provide a framework for implementing the business domain and logic, which helps developers create a controller and a view for the application. However, like any other technologies or platforms, Spring MVC too suffers from several criticisms related to the complexity of the Spring framework. Final Verdict Either framework is a great choice. However, if you’re looking for the stable framework, Struts 2 is the right choice for you. On the other hand, if you’re looking for something robust, SpringMVC is perfect. Ensure that you review your exact requirements before choosing the framework!
September 15, 2015
by Manmay Mehta
· 32,311 Views · 4 Likes
article thumbnail
Data Conversion for SQL Server Integration Services (SSIS)
In the series of step by step lessons of SSIS (SQL Server Integration Services), this is part six in which we are going to learn a new control: Data Conversion.
September 15, 2015
by Rajat Jaiswal
· 18,116 Views · 1 Like
article thumbnail
MySQL is a Great NoSQL Database
At Wix engineering, we’ve found that in most cases we don’t need a NoSQL database, and that MySQL is a great NoSQL database if it’s used appropriately.
September 12, 2015
by Aviran Mordo
· 19,603 Views · 6 Likes
article thumbnail
Java 8 Stream Performance Benchmarks
Learn all about Java stream performance with benchmarking and awesome metrics.
September 11, 2015
by Nicolai Parlog
· 14,269 Views · 4 Likes
article thumbnail
Customer Journey Analytics and Data Science
Deciphering the "nuts-and-bolts” of individual customer journeys (and deducing intent) is core to improving customer experience and driving brand loyalty.
September 9, 2015
by Ravi Kalakota
· 8,490 Views · 1 Like
article thumbnail
Retrieving Table Metadata from SQL Server Catalog Views
SQL Server Catalog Views can be queried easily, and being able to retrieve this metadata can be very useful in various situations.
September 3, 2015
by Daniel D'agostino
· 32,302 Views · 2 Likes
article thumbnail
Using GNU Profiling (gprof) With ARM Cortex-M
Guide on how to use GNU gprof for profiling embedded applications on ARM Cortex-M microcontrollers, including setup, implementation, and analysis of profiling data.
September 3, 2015
by Erich Styger
· 9,576 Views · 2 Likes
article thumbnail
Diagramming Microservices With the C4 Model
Learn how to diagram a microservices architecture with the C4 model with these tips.
September 1, 2015
by Simon Brown
· 16,017 Views · 4 Likes
article thumbnail
Is it Worth it to Use 'Optional' in Collections?
There's a practical reason to use Optional in collections. It's just other developers who ruin it for you.
August 28, 2015
by Peter Verhas DZone Core CORE
· 19,217 Views · 2 Likes
article thumbnail
How to Copy Data from a Range of Cells In Java Apps
Trying to figure out how to copy data from a range of cells in Java apps? Learn how in this quick snippet.
August 26, 2015
by David Zondray
· 12,953 Views · 1 Like
article thumbnail
4 Steps to Integrate Salesforce and Netsuite with Restlet
Learn how to integration Salesforce and Netsuite, two of the most important CRM Solutions, using Restlet.
August 20, 2015
by Davis Kerby
· 7,161 Views · 2 Likes
  • Previous
  • ...
  • 403
  • 404
  • 405
  • 406
  • 407
  • 408
  • 409
  • 410
  • 411
  • 412
  • ...
  • Next
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook
×