what is struts? 2 Answer(s) 5 years and 10 months ago
Posted in : Struts
January 27, 2009 at 12:19 AM
The core of the Struts framework is a flexible control layer based on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and XML, as well as various Jakarta Commons packages. Struts encourages application architectures based on the Model 2 approach, a variation of the classic Model-View-Controller (MVC) design paradigm.
Struts provides its own Controller component and integrates with other technologies to provide the Model and the View. For the Model, Struts can interact with standard data access technologies, like JDBC and EJB, as well as most any third-party packages, like Hibernate, iBATIS, or Object Relational Bridge. For the View, Struts works well with JavaServer Pages, including JSTL and JSF, as well as Velocity Templates, XSLT, and other presentation systems.
The Struts framework provides the invisible underpinnings every professional web application needs to survive. Struts helps you create an extensible development environment for your application, based on published standards and proven design patterns.
Hibernate: Hibernate is a free, open source Java package that makes it easy to work with relational databases. Hibernate is a solution for object relational mapping and a persistence management solution or persistent layer.
Hibernate provides a solution to map database tables to a class. It copies the database data to a class. In the other direction it supports to save objects to the database. In this process the object is transformed to one or more tables.
Saving data to a storage is called persistence. And the copying of tables to objects and vice versa is called object relational mapping.
ORM stands for Object/Relational mapping. It is the programmed and translucent perseverance of objects in a Java application in to the tables of a relational database using the metadata that describes the mapping between the objects and the database. It works by transforming the data from one representation to another.
Yes, you can use in eclipse ide's. For the hibernate, you copy and paste the hibernate lib in the lib direcoty of yuor hibernte application.