欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

普元EOS6.2学习总结

程序员文章站 2022-05-06 18:24:48
...

文件上传: 将文件类型的转换为对象类型 数据放入到 session 中: 1.现在前一个页面的form中: input type=hiddenname=testVar value=ss scope=session/ 2. 然后在下面的页面中就可以获得到了 b:write property = testVar / Eos (主要是传参数) 如: 获得

文件上传:

普元EOS6.2学习总结

将文件类型的转换为对象类型

普元EOS6.2学习总结


数据放入到session中:

1. 现在前一个页面的form中:

2. 然后在下面的页面中就可以获得到了b:writeproperty="testVar"/>

Eos(主要是传参数)

如:

获得值:

第一种

Object reqid =com.eos.web.taglib.util.XpathUtil.getDataContextRoot("request",pageContext);

String reqId=(String)com.eos.web.taglib.util.XpathUtil.getObjectByXpath(reqid,"userRequiements/requiementId");

System.out.println("reqId -- "+reqId);

//com.eos.web.taglib.util.XpathUtil.setValue("reID",pageContext, reID,null);

%>

第二种:

Object processInst =com.eos.web.taglib.util.XpathUtil.getDataContextRoot("request",pageContext);

String processInstId =String.valueOf(com.eos.web.taglib.util.XpathUtil.getObjectByXpath(processInst,"processInstId"));

System.out.println("reqId -- "+processInstId);

//com.eos.web.taglib.util.XpathUtil.setValue("reID",pageContext, reID,null);

%>

(jsp脚本和

可以传值:、

iframename="menuTreeFrame"align="top"scrolling="auto"style="width:100%;height:100%"

src="com.sinosoft.userrequiements.mywork.FeedBackMyWork.flow?_eosFlowAction=showFlow&processInstId=b:writeproperty="userRequiements/processinstid"/>"style="width:100%;height: 100%"frameBorder=0>

iframe>

在逻辑流获得用户登录的信息:(eos内置)

普元EOS6.2学习总结

页面流获得用户的信息:

普元EOS6.2学习总结

解决:分页和重置按钮问题:

查询的:

普元EOS6.2学习总结

页面流:

普元EOS6.2学习总结


Iframe页面:

普元EOS6.2学习总结

分页:

普元EOS6.2学习总结

核心代码:

tablealign="center"border="0"cellpadding="0"cellspacing="0"width="100%">

tr>

td>

iframename="queryFrame"id="queryFrame"src="" marginWidth=0marginHeight=0 frameborder="0"scrolling="no"width="100%"onload="autoResize();">iframe>

td>

tr>

table>

scripttype="text/javascript">

document.form1.submit();

function autoResize(){

try{

document.all["queryFrame"].style.height=queryFrame.document.body.scrollHeight;

}catch(e){}

}

script>

可以不用写java片段

直接用@就可以