session问题

ypjbirds ypjbirds 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
protected void onSubmitActionWrapper(ActionRequest request,
ActionResponse response, Object command,BindException errors)
throws BaseException, WindowStateException {

String gotoURL=request.getParameter("gotoUrl");

if(("detailok").equals(gotoURL)){

DetaildisplayBean sessionCmd = new DetaildisplayBean();


SessionManagerUtils.setPortletAttribute(request,
InteractiveConstant.INTERACTIVE_PARAMETER_DETAILURL, sessionCmd);


PortalUtils.redirect(this, response, WindowState.NORMAL, "detaildisplay");

} else if(("detailclear").equals(gotoURL)){

DetaildisplayBean detaildisplayBean = (DetaildisplayBean) command;


DetaildisplayBean sessionUserGroupAddCommand = (DetaildisplayBean) SessionManagerUtils
.getPortletAttribute(request, InteractiveConstant.INTERACTIVE_PARAMETER_DETAILURL);

detaildisplayBean.setDetaliURL(sessionUserGroupAddCommand.getDetaliURL());
detaildisplayBean.setInFormat(sessionUserGroupAddCommand.getInFormat());
detaildisplayBean.setOutFormat(sessionUserGroupAddCommand.getOutFormat());
detaildisplayBean.setName1(sessionUserGroupAddCommand.getName1());
detaildisplayBean.setName2(sessionUserGroupAddCommand.getName2());
detaildisplayBean.setName3(sessionUserGroupAddCommand.getName3());
detaildisplayBean.setValue1(sessionUserGroupAddCommand.getValue1());
detaildisplayBean.setValue2(sessionUserGroupAddCommand.getValue2());
detaildisplayBean.setValue3(sessionUserGroupAddCommand.getValue3());


PortalUtils.redirect(this, response, WindowState.NORMAL, "detaildisplay");

}

}
}


在第一个IF语句中 画面项保存到session中就保存不上
为什么呢
...全文
评论 5
收藏 已收藏
分享
返回顶部
ypjbirds
Web 开发 81,108 成员 341,721 内容