有哪些 JSR 168 兼容的 Java Web 框架?
There are many Java web application frameworks available but what are my alternatives when developing JSR 168 portlets? I found a couple:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
就是这样,Sven,我还没有尝试过 JSF portlet 桥,但我使用 Struts portlet 桥和 spring-webmvc-portlet 已经快两年了。
这是我自己的观点:
我会尽量避免使用 Struts portlet 桥。它是一个死的东西,但仍然存在,因为一些门户已经使用了它,并且它仍然内置在其中。它已经很老了,它达到了它的目的,但是对于像 spring-webmvc-portlet 这样的东西 - 使用它并不明智。除非您是 Struts 爱好者并且您还没有尝试过 Spring-mvc 或 JSF。
我喜欢 spring portlet 环境集成到 servlet env 的原理。开发人员需要的一切都已实现,除了
向 portlet 添加多部分请求支持 之类的东西资源请求 (SPR-7662)
Spring Portlet MVC - 无法从 @ 返回 JSON 数据ResourceMapping (SPR-7344)
使用 Struts 桥接器,您最终会做大量低级工作来隐藏这样一个事实:请求到达主 Portal Servlet 后,它会变成“portlet 请求”。使用 Spring,你不在乎 :-) 谈论像 Liferay、JBoss 或 uPortal 这样的门户
That's it Sven, I haven't tried JSF portlet bridge, but I have been working with Struts portlet bridge and spring-webmvc-portlet almost 2 years.
this is my own opinion :
I would try to avoid using Struts portlet bridge. It's a dead thing that still exists because some Portals had utilized it and it is still built in them. It's quite old, it serves its purpose, but with something like spring-webmvc-portlet - using it wouldn't be wise. Unless you are Struts enthusiast and you haven't tried Spring-mvc or JSF.
I like the principle how spring portlet environment is integrated into servlet env. There is also everyhing that developer needs already implemented, except few things like
Add multipart request support to portlet resource requests (SPR-7662)
Spring Portlet MVC - Unable to return JSON data from @ResourceMapping (SPR-7344)
With Struts bridge you end up doing tons of low level stuff to hide the fact, that after request hits the Main Portal Servlet, it becomes "portlet request". With Spring you don't care :-) Talking about portals like Liferay, JBoss or uPortal
带有 portlet 桥的 JSF: http://jboss.org/portletbridge
JSF with a portlet bridge: http://jboss.org/portletbridge