Akshobhya
Akshobhya

Reputation: 139

How to create DAO class which returns data for JSON in Struts 2?

How to create DAO class which returns data for JSON to create jQuery grid in Struts 2? I have gone through documents but I didn't find how to create DAO and what it should actually contain.

Upvotes: -3

Views: 554

Answers (1)

Roman C
Roman C

Reputation: 1

Since Struts 2 abstract from any database implementation, there isn't available any related resources. For integration with any database you can use Spring and/or Hibernate. You can find the simple DAOs in the Struts2 Hibernate plugin.

Also in this answer you can find an article about Generic DAO.

Upvotes: 0

Related Questions