将标准 java 集成到 Web 框架中,例如 Stripes、Grails JRuby 和 Rails
由于各种原因,我们必须使用基于 Java 的 Web 框架来创建概念验证网站。我们有很多用标准 java 编写的算法,必须连接到该站点。
所以现在我正在考虑条纹、圣杯、红宝石和轨道。请记住,我对这些几乎一无所知。我的核心问题是,将我们的各种 java 对象集成到 Web 框架中有多容易。
我通常认为这是一个直接的过程...但话又说回来,这是 Java 和 Web!
有人有经验吗?
For various reasons we have to use a java based web framework to create a proof of concept site. We've a lot of algorithms written in standard java that will have to hook into the site.
So right now I'm considering stripes, grails and jruby and rails. Bearing in mind I know almost nothing about any of these. My core issue is going to be, how easy is it to integrate our various java objects into the web framework.
I'd usually assume this is a straight forward process... but then again it is java and the web!
Anyone have any experience ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
所以基本上,这些框架中的任何一个都应该能够很好地处理你的“算法”,假设它们不是这样依赖于不寻常的事物。
So basically, any of these frameworks should be able to handle your "algorithms" just fine assuming they aren't dependent on something out of the ordinary.
对于 Grails 来说这非常简单(我不确定其他框架是否如此)。
Grails 鼓励您将“Web”内容和“业务对象”内容分开 - 看看它们的“服务层”http://grails.org/doc/latest/guide/8.%20The%20Service%20Layer.html。
For Grails it is pretty easy (I'm not sure about the other frameworks).
Grails encourages you to separate your "web" stuff and your "business objects" stuff - have a look at their "Service Layer" http://grails.org/doc/latest/guide/8.%20The%20Service%20Layer.html.