使用 ext-js 的服务器端技术

发布于 2024-09-11 08:23:27 字数 175 浏览 1 评论 0原文

我选择 Ext-JS 来为我的下一个应用程序开发 UI。我想知道 Ext-JS 与我的服务器交互的最佳方式是什么。

我应该使用返回 JSON 响应的普通 JSP 吗?我应该使用 DWR 还是 Jabsorb,它通过后端 java 代码提供直接远程处理。还有其他解决方案吗?

我更关心的是表现,而不是其他。

I have chosen Ext-JS to develop the UI for my next application. I am wondering what is the best way for Ext-JS to interact with my server.

Should I use plain JSPs which return a JSON response? Should I use DWR or Jabsorb which provides direct remoting with backend java code. Any other solution?

I am more concerned about performance and nothing else.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

两人的回忆 2024-09-18 08:23:27

您当然可以使用普通 JSP 或 servlet,手动处理请求并形成 JSON 响应。使用 DWR 或类似的东西来为您处理管道会让您的生活变得更轻松,并且性能应该不会有明显的不同。

当前版本的 Ext JS 使用 Ext.Direct 堆栈将受支持的后端集成到 UI 数据层中,从而使将网格和表单等组件绑定到后端服务变得更加简单。 这里是一个演示此类远程处理的网格示例。 这里是 Ext.Direct 论坛 - 您应该有看看别人在做什么。看看这篇文章看看目前有哪些 Ext.Direct 提供程序可用于 Java。

同样,您当然可以直接使用 Ext.Ajax(或使用标准 Store 方法进行调用)从 Ext 手动进行调用,但是 Ext.Direct 堆栈可以使将所有内容集成在一起变得更加容易。

You can certainly use plain JSPs or servlets, manually handling your requests and forming JSON responses. You'll make life easier on yourself using DWR or something like it to handle the plumbing for you, and the performance shouldn't be noticeably different.

Current versions of Ext JS use the Ext.Direct stack for integrating supported back ends into the UI data layer, making it much simpler to bind components like grids and forms to your back end services. Here is a grid sample that demonstrates such remoting. Here is the Ext.Direct forums -- you should have a look at what others are doing. Look at this post to see what Ext.Direct providers are currently available for Java.

Again, you can certainly make your calls manually from Ext using Ext.Ajax directly (or using the standard Store methods for making calls), but the Ext.Direct stack can make it much easier to integrate everything together.

仅此而已 2024-09-18 08:23:27

我们公司正在使用 Spring MVC 3 的 extdirect 库,它运行得非常好!

Extdirectspring

当您在配置时遇到问题时,可以询问我。

we'r using the extdirect library for Spring MVC 3 in our Company and it works fantastic !

Extdirectspring

You can ask me when you've troubles configuring it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文