|

楼主 |
发表于 2017-8-14 14:59:18
|
显示全部楼层
本帖最后由 John913 于 2017-8-14 15:00 编辑
action要如何调用?没有bsessionid,是否要用特别的调用方式?这是我在.j文件中的代码:
Action action = new Action();
action.setProcess("/SA/OPM/system/systemProcess");
action.setActivity("mainActivity");
action.setName("getUserInfoAction");
action.setParameter("loginName", login);
ActionResult result = ActionEngine.invokeAction(action, ActionUtils.JSON_CONTENT_TYPE, "", null, null);
Map obj = (Map)result.getContent();
返回错误:
{"code":"JUSTEP150000","data":"","flag":false,"message":"服务器连接超时, 切换到登录页面","messages":"[]","reason":"长时间未操作,导致会话过期; 服务器重启后,导致会话被关闭 ","stack":""}
|
|