Explain different Java Web Frameworks.
INTRODUCTION TO JAVA WEB FRAMEWORKS
Frameworks are large bodies of pre-written code to which you add your own code in order to solve a problem. You make use of a framework by calling its methods, inheritance, and supplying callbacks, listeners, or other implementations of the patterns. A framework will often dictate the structure of an application. Some frameworks even supply so much code that you have to do very little to write your application. Three major java web frameworks are briefly discussed below.
Struts: Struts is a Java-based open-sourced framework that helps in developing web application in J2EE. It extends the Java Servlet API and promotes the Model, View, Controller (MVC) architecture. This makes the web applications developed in standard technologies like JSP, JavaBeans, and XML, more maintainable, extensible,and flexible. The framework is designed to streamline the full development cycle, from building, to deploying, to maintaining applications over time. Struts provide various other features to make web development easier for the developers such as POJO forms and POJO actions, Tag Support, AJAX support, easy Integration and many
Spring: Spring is a powerful lightweight application development framework used for Java Enterprise Edition (JEE). In a way, it is a framework of frameworks because it provides support to various frameworks such as Struts, Hibernate, Tapestry, EJB, JSF, etc. The framework in a broader sense can be defined as a structure using which can solve many technical problems. You can say that the Spring Framework is a comprehensive tool for supporting applications using Java programming language. you
. Hibernate: Hibernate is a framework in Java which comes with an abstraction layer and handles the implementations internally. The implementations include tasks like writing a query for CRUD operations or establishing a connection with the databases, etc. Hibernate develops persistence logic, which stores and processes the data for longer use. It is lightweight and an Objection-relational Mapping (ORM) tool, and most importantly open-source which gives it an edge over other frameworks. ORM is a technique that maps the object stored in the database. An ORM tool simplifies data creation, manipulation, and access. It internally uses the Java API to interact with the databases.
Comments
Post a Comment