Eos jsp页面中获得RequestContext、SessionContext中的值

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");

你可能感兴趣的:(Web,jsp,J#)