从 Struts 1.x 迁移到 GWT 2.x
这是一个相当开放式的问题,因为我的研究才刚刚开始,但我很难找到有关如何将 GWT 混合到 Struts 应用程序中以实现删除 Struts 的最终目标的资源。所以,我希望有人能给我指出一个好的参考资料,或者他们是否可以成为这里的参考资料。我发现最接近我想要的东西是http://pjug.org/docs/gwt092008。 pdf 但没有听到演示的描述给我留下了一些问题。当然,我会继续修补,在创作过程中添加我自己的发现,但如果来自社区的任何有关陷阱或问题的建议,我们将不胜感激。
一个具体的问题...创建一个单独的 GWT 应用程序,简单地向 Struts 应用程序发出 RPC,然后慢慢地将功能拉入 GWT 应用程序中,是不是一个更好的主意?
This is a rather open ended question since I'm only in the beginning of my research, but I'm having trouble finding resources on how to mix GWT into a Struts application with the eventual goal of removing Struts. So, I was hoping someone out there could either point me to a good reference or if they could be that reference here. The closest thing I've found to what I want is http://pjug.org/docs/gwt092008.pdf but the description without hearing the presentation leaves me with a few questions. I'll continue to tinker, of course, adding my own discoveries as I make them, but any advice on pitfalls or gotchas from the community would be appreciated.
One specific question... Would it be a better idea to, instead, create a separate GWT application that simply makes RPCs to the Struts app, and slowly pull the functionality into the GWT application?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的 Struts 应用程序中有一个服务层,您可以尝试重用该服务层并将其用于 Struts 和 GWT 前端。我不会采用 RPC 方法,因为它会导致大量的编码和性能开销。
更好地在同一个网络应用程序中并行开发它们。
If you have a service layer in your Struts application, you could try to reuse the service layer and use it for both the Struts and GWT frontend. I wouldn't take the RPC approach, since it causes significant coding and performance overhead.
Better develop them side by side within the same webapp.