By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,654 Members | 1,517 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,654 IT Pros & Developers. It's quick & easy.

Is Struts and hibernate use as back end or front end ?

P: 52
i am new in advanced java technology
and i am getting confuse myself
struts tags are used in the front face of the page
and also struts.xml file is work in background
so what we can say its front end or back end.

and same like
hibernate is used to create database tables means its back end or other.
plz tell me.
May 25 '12 #1
Share this Question
Share on Google+
2 Replies

P: 107

Struts is a framework of open-source software that can help you build Web applications quickly and easily. It relies on standard technologies such as Java beans, Java servlets, JavaServer Pages (JSP), and XML. Struts encourages application architectures based on the Model 2 approach, which is basically the same as the model-view-controller (MVC) design pattern.

Using Struts to create a complex Web application can help make the application more maintainable. The application is easier to debug, easier to extend, and easier to understand.

The centerpiece of Struts is its MVC-style controller, which integrates with other technologies that provide the model and the view. For the model, Struts can interact with standard data access technologies such as JDBC and EJB, as well as many third-party packages such as Hibernate, iBATIS, or Object Relational Bridge. For the view, Struts works well with JSP, including the JSP Standard Tag Library (JSTL) and JavaServer Faces (JSF), as well as Velocity Templates, XSLT, and other presentation systems.

Struts is hosted by the Apache Software Foundation (ASF) as part of its Jakarta project.


Hibernate is a high-performance Object/Relational persistence and query service which is licensed under the open source GNU Lesser General Public License (LGPL) and is free to download. Hibernate not only takes care of the mapping from Java classes to database tables (and from Java data types to SQL data types), but also provides data query and retrieval facilities.

It can significantly reduce development time otherwise spent with manual data handling in SQL and JDBC. Hibernate’s design goal is to relieve the developer from 95% of common data persistence-related programming tasks by eliminating the need for manual, hand-crafted data processing using SQL and JDBC. However, unlike many other persistence solutions, Hibernate does not hide the power of SQL from you and guarantees that your investment in relational technology and knowledge is as valid as always.

Hibernate may not be the best solution for data-centric applications that only use stored-procedures to implement the business logic in the database, it is most useful with object-oriented domain models and business logic in the Java-based middle-tier. However, Hibernate can certainly help you to remove or encapsulate vendor-specific SQL code and will help with the common task of result set translation from a tabular representation to a graph of objects.

Nov 6 '13 #2

P: 127
To keep it simple, both work on the back end. The difference lies in how and where the operate in the back end.

Struts is a framework for easily developing Java EE based web applications. Hibernate is a framework for mapping your (ORM - Object Relational Mapping) Database objects into your Java objects.
Nov 12 '13 #3

Post your reply

Sign in to post your reply or Sign up for a free account.