|
楼主 |
发表于 2022-10-26 01:01:46
|
显示全部楼层
本帖最后由 win3394393 于 2022-10-26 01:05 编辑
现在jar的方法都正常执行了 程序走到 x5/portal/index.w的页面 就有问题 index代码
//获取用户信息
viewRequestAndVars(null,request);
String userInfo = Controller.process("system/User/initPortalInfo", (HttpServletRequest)request);
vars.put("userInfo", userInfo);
System.out.println("Index.java userInfo="+userInfo);
//获取功能树
String funcTree = Controller.process("system/FuncTree", (HttpServletRequest)request);
vars.put("funcTree", funcTree);
System.out.println("Index.java funcTree="+funcTree);
//获取快捷方式
String shortCuts = Controller.process("system/Layout/loadShortcuts", (HttpServletRequest)request);
//String shortCuts ="";
vars.put("shortCuts", shortCuts);
System.out.println("Index.java shortCuts="+shortCuts);
//获取布局信息
String layout = Controller.process("system/Layout/loadTabs", (HttpServletRequest)request);
//String layout ="";
vars.put("layout", layout);
System.out.println("Index.java layout="+layout);
//获取widget
String widgets = Controller.process("system/WidgetList",(HttpServletRequest)request);
vars.put("widgets", widgets);
System.out.println("Index.java widgets="+widgets);
问题 1 比如 userInfo 下面这个 里面的 orgName 、agentPersonCode、orgPath 等取到的都是null 我用以前没集成的登录页 输入用户名和密码 都是有值得 //获取用户信息
viewRequestAndVars(null,request);
String userInfo = Controller.process("system/User/initPortalInfo", (HttpServletRequest)request);
vars.put("userInfo", userInfo);
打印出来
Index.java userInfo=[{"data":"{\"orgName\":'null',\"agentPersonCode\":'null',\"orgPath\":'null',\"agentOrgPath\":'null',\"needModifyPassword\":'null',\"businessId\":'06BBF54F9AB956EF6347DACE41DA5A5B',\"agentOrgName\":'null',\"userName\":'null',\"locale\":'zh_CN',\"agentPersonName\":'null',\"personCode\":'null',\"orgId\":'null',\"personName\":'null',\"personId\":'null',\"agentPersonId\":'null',\"agentOrgId\":'null'}","status":"SUCCESS"}]
问题 2 其他的报错 Index.java layout=error for system/Layout/loadTabs
Index.java shortCuts=error for system/Layout/loadShortcuts
问题 3
2022-10-26 00:49:43 action:<?xml version="1.0" encoding="UTF-8"?>
<action process="/portal/portalProcess" activity="index" name="__getName__" execute-context="" content-type="application/xml"><parameters><parameter name="p"><xbiz:map xmlns:xbiz="http://www.justep.com/xbiz#"><item key="@ac"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String">535894dd0b73cf6c3c229b5a521fcaabfb1305c343d8</xbiz:simple></item></xbiz:map></parameter></parameters></action>
com.justep.exception.BusinessException: can't find process in invokeActions:/portal/portalProcess
这个/portal/portalProcess 我找了 存在的 不清楚为什么会报错
|
|