关于页面条转
来源:互联网 发布:淘宝运动鞋韩版正品店 编辑:程序博客网 时间:2024/05/17 00:13
在struts中有2中跳转的形式
1.
<action path="/experiments/smtz"
type="com.zn.smtz.struts.action.SmtzInsertAction" attribute="SmtzForm" name="SmtzForm">
<forward
name="listSuccess"
path="portlet.experiments.smtzinsert"
redirect="true" />
</action>
注意: path="portlet.experiments.smtzinsert" 是.的形式,此时SmtzInsertAction中方法用的是
public ActionForward render(ActionMapping mapping, ActionForm form, PortletConfig config,
RenderRequest request, RenderResponse response)
throws Exception{
return mapping.findForward(
getForward(request, "listSuccess"));
}
2.
<action path="/experiments/smtz"
type="com.zn.smtz.struts.action.SmtzInsertAction" attribute="SmtzForm" name="SmtzForm">
<forward
name="listSuccess"
path="="/experiments/list"
redirect="true" />
</action>
注意:path="="/experiments/list" 是/的形式,此时的SmtzInsertAction中方法用的是
public class SmtzInsertSaveAction extends PortletAction{
public void processAction(
ActionMapping mapping, ActionForm form, PortletConfig config,
ActionRequest request, ActionResponse response)
throws Exception {
config.getPortletContext().setAttribute("smtz", "success");
setForward(request, "insertSuccess");
}
但是也可以在path中直接指定页面,例如path="/success.jsp",此时的jsp页面必须在html文件夹下就是html下直接有success.jsp中间不能有别的子文件夹
- 关于页面条转
- 关于保持页面滚动条位置的一些体会
- 关于浏览器出现滚动条和消失页面不跳动
- 页面打开滚动条
- 页面加载条
- 页面元素滚动条
- HTML 页面滚动条
- 实现页面滚动条
- 禁用页面滚动条
- 页面导航条实验
- 页面导航条
- 设置页面滚动条
- 页面滚动条翻页
- 页面加载条百分比
- 头条页面
- 隐藏页面滚动条
- android中关于使用scrollview嵌套LinearLayout,页面滚动条不到底的解决方法
- 关于jsp页面表格表头固定,随着下拉条表头移动
- 转载 JNI
- 整数的质因数分解算法
- spring3在jboss4中部署异常java.lang.RuntimeException: XPathFactory#newInstance() failed
- Ubuntu的文件关联
- IrrTypes.h
- 关于页面条转
- IOMeter
- SAPI 包含sphelper.h编译错误解决方案
- 开放定址法解决hash冲突(C语言)
- js图片上传预览
- Android Telephony Radio Layer Interface
- PL/SQL Developer Version Control Plug-In User’s Guide
- 异曲同工 7个Android应用程序源代码打包下载(与10个不一样)
- 论文阅读报告:Improving the Scalability of Data Center Networks with Traffic-aware Virtual Machine Placement