Struts2中的jQuery Grid-初学者 [英] JQuery Grid in struts2 - beginner

查看:173
本文介绍了Struts2中的jQuery Grid-初学者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是struts2和JQuery编程的新手.在我的应用程序中,当调用loginAction时,如果用户是Admin,则将他们定向到AdminLoadAction.此操作将加载adminHome.jsp.我需要adminHome.jsp使用JQueryGrid来显示系统中的所有客户.现在,我的AdminLoadAction返回成功(我使用jdbc连接到数据库,因此我查询了我的数据库并获得了系统中所有客户的列表,效果很好).

Im new to struts2 and JQuery programming. Im my application, when the loginAction is called and if the user is an Admin i direct them to the AdminLoadAction. This action loads the adminHome.jsp. What i need is for adminHome.jsp to use a JQueryGrid to display all the customers in the system. Right now my AdminLoadAction returns success (i use jdbc to connect to DB so i query my db and get a List of all the customers in the system, which works fine).

我一直在尝试逐步找到良好的教程,但还没有找到任何指导.有人可以提出一个想法,我需要做些什么才能实现这一目标.到目前为止,我已经下载了struts2-jquery插件,struts2-jquery-grid插件和struts2-json插件并将其添加到我的项目中.

I have been trying to find good step by step kind of tutorials but havent found any. Can Some one give an idea of what change will i need to do to achieve this. So far i have downloaded and added the struts2-jquery plugin, struts2-jquery-grid plugin and the struts2-json plugin to my project.

谢谢!

推荐答案

您已经看过此幻灯片了吗?

Have you already seen this slides?

http://www.slideshare.net/johannesgeppert1/Introduction-into-struts2-jquery-grid-tags

另一个好的起点是研究 Showcase 中的示例和展示网格应用.并查看网格标记周围的Wiki页面.

Another good point to start is study the examples in the Showcase and Showcase Grid App. And take a look at the Wiki Pages around the Grid Tag.

约翰内斯

这篇关于Struts2中的jQuery Grid-初学者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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