如何在 Struts 2 中创建返回 JSON 数据的 DAO 类? [英] How to create DAO class which returns data for JSON in Struts 2?

查看:38
本文介绍了如何在 Struts 2 中创建返回 JSON 数据的 DAO 类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何创建返回 JSON 数据的 DAO 类以在 Struts 2 中创建 jQuery 网格?我已经浏览了文档,但我没有找到如何创建 DAO 以及它实际应该包含的内容.

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.

推荐答案

struts2-jquery-grid-showcase 源代码.他们使用了一个简单的抽象通用 DAO 和 full-hibernate-插件.

Find the simple DAOs in the struts2-jquery-grid-showcase source code. They use a simple abstract generic DAO used with the premier and full-hibernate-plugin.

这篇关于如何在 Struts 2 中创建返回 JSON 数据的 DAO 类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆