我想使用 struts 和 hibernate 创建一个项目。另外,我还想在其中使用 jQuery。我尝试浏览一些使用 spring+struts+hibernate+jquery 的教程,但它不起作用。
我查看了 http://code.google.com/p 上的 struts2 jquery 插件展示/struts2-jquery/ 并发现这是我真正需要的。既然网站已经提供了它的代码,那么有人知道如何使用这些代码吗?我尝试在 Eclipse 中创建一个新项目,并将所有源代码从展示插件复制到我的项目中,但它不起作用。
有人可以帮我吗?我迫切需要解决这个问题,因为我的项目很快就要到期了。 :(
希望有人能尽快提供帮助。
谢谢大家,
亲爱的 =)
I want to create a project using struts and hibernate. Also, I also wanted to use jQuery in it. I tried going through some tutorials in using spring+struts+hibernate+jquery but it just won't work.
I took a look at the struts2 jquery plugin showcase at http://code.google.com/p/struts2-jquery/ and saw that it was what I really needed. Since the site already provided the codes for it, does anyone know how to use those codes? I tried creating a new project in Eclipse and copying all the source codes from the showcase plugin to my project but it's not working.
Can someone pls help me on this? I badly need to work this out since my project is due soon. :(
Hope someone could help asap.
Thanks everyone,
Honey =)
发布评论
评论(3)
只需下载 https:// /code.google.com/p/struts2-jquery/downloads/detail?name=struts2-jquery-showcase-2.4.1.war 并在 Tomcat 中启动它。
Just download https://code.google.com/p/struts2-jquery/downloads/detail?name=struts2-jquery-showcase-2.4.1.war and start it in Tomcat.
以下是 Netbeans 6.9 中的一些工作 JQGrid 示例。
简单的 Struts2 Jquery 网格
Struts2JQGrid 带导航
可编辑的 Struts2JQGrid
可编辑可排序可搜索 Struts2JqueryGrid< /a>
只需解析引用即可开始。
Here are few working JQGrid Examples in Netbeans 6.9.
Simple Struts2 Jquery grid
Struts2JQGrid with navigation
Editable Struts2JQGrid
Editable Sortable Searchable Struts2JqueryGrid
Simply resolve the references and get going.
除了说您想要创建一个使用 jQuery(以及其他技术)的新 Struts2 项目之外,我不确定您的要求是什么。如果您想修改您的问题以表明您遇到的具体问题,那么也许我们可以为您提供帮助。
我确实想指出,您不需要使用 jQuery 插件即可在 Struts2 中使用 jQuery。您只需包含必要的 CSS 和 JavaScript 就可以了。这并不是说 jQuery 插件不好或者你不应该使用它,只是说你没有必要使用它。
I'm not sure what you are asking for aside from saying that you want to create a new Struts2 project that uses jQuery (among other technologies). If you would revise your question to indicate what specific problems you are having, then perhaps we can assist you.
I do want to point out that you don't need to use the jQuery plugin in order to use jQuery in Struts2. You can just include the necessary CSS and JavaScript and you are good to go. That's not to say that the jQuery plugin isn't good or that you shouldn't use it, just that you don't have to.