com.primeton.tp.core.prservice.context.SessionContext ctx = (com.primeton.tp.core.prservice.context.SessionContext)session.getAttribute(com.primeton.tp.core.prservice.context.SessionContext.SESSION_SESSION_CONTEXT);
System.out.println("+++++++++++++"+ctx);
String testOperatorID=ctx.getEntityValue("testOperatorID");
Node n=ctx.getEntity("testOperatorID");
//String testOperatorID=n.getNodeValue();
同理:
com.primeton.tp.core.prservice.context.RequestContext reqContext = (com.primeton.tp.core.prservice.context.RequestContext)request.getAttribute(com.primeton.tp.web.driver.webdriver.WebDriver.REQUEST_REQUEST_CONTEXT);
//取得对象中的值
String sheetContent = (String)reqContext.getEntityValue("OC_J_SHEET/SHEET_CONTENT");
System.out.println("+++++++++++++"+ctx);
String testOperatorID=ctx.getEntityValue("testOperatorID");
Node n=ctx.getEntity("testOperatorID");
//String testOperatorID=n.getNodeValue();
同理:
com.primeton.tp.core.prservice.context.RequestContext reqContext = (com.primeton.tp.core.prservice.context.RequestContext)request.getAttribute(com.primeton.tp.web.driver.webdriver.WebDriver.REQUEST_REQUEST_CONTEXT);
//取得对象中的值
String sheetContent = (String)reqContext.getEntityValue("OC_J_SHEET/SHEET_CONTENT");