- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在将旧的 portlet 应用程序从 WPS5 迁移到 WPS6。该应用程序正在使用 IBM 旧容器。根据迁移指南,我只更新了一些门户库和一些标签引用。该应用程序仍然使用 IBM 旧版容器和修改后的 Struts Portlet。
当我创建一个链接时:
<html:link page="/page1.do?method=display">Go to Page 1</html:link>
链接呈现这样的网址:
/wps/.../...[hash-like chars]_spf_strutsAction=!2fpage1.do!3fmethod%3ddisplay#[hash-like chars]
我正在使用DispatchAction
,它将查找参数“method”进行调度。但是,点击上面的链接无法将'method'参数传递给dispatchAction。进一步调查请求参数发现了这个键值对:
name: spf_strutsAction
value: !2fpage1.do!3fmethod=display
很明显,request.getParameter('method')
返回 null,因为该参数被隐藏在 request.getParameter('spf_strutsAction')
下,因此该操作无法发送。
当然,我可以通过读取隐藏的参数来强制执行调度操作。但问题是除了 'method' 之外还有很多其他参数。
我认为门户服务器应该提供其PortletRequest 的实现。 PortletRequest.getParameter() 是否不正确?或者是Portlet Struts 问题?如何将这些参数放回请求对象中?
最佳答案
一些想法:
关于java - Websphere Portlet 迁移,DispatchAction 中缺少参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/531284/
我想从另一个调度操作调用dispatchAction的方法。我希望当我单击更新或删除时,“内部显示用户方法”将在我的 jsp 上显示。 Struts 配置文件
我有一个 .jsp 页面,其中有四个按钮,分别名为提交、添加、更新和删除: Insert title here 在每次提交时,它都被重定
我正在将旧的 portlet 应用程序从 WPS5 迁移到 WPS6。该应用程序正在使用 IBM 旧容器。根据迁移指南,我只更新了一些门户库和一些标签引用。该应用程序仍然使用 IBM 旧版容器和修改后
情况是这样的:我练习创建一个迷你博客应用程序。我使用 Strut 的 EventDispatchAction 来处理所有与帖子相关的方法,例如更新和列出帖子。 我有一个更新数据库的 update()
我想使用 Struts DispatchAction 方法执行一些操作,但是我不想将它转发给任何 jsp; 我可以用 void 编写调度方法吗?例如: public void perform(Ac
尝试运行 https://github.com/ParsePlatform/AnyWall 时出现此错误在 Eclipse 中 描述资源路径位置类型错误:在包“android”activity_pos
我是一名优秀的程序员,十分优秀!