文件上传: 将文件类型的转换为对象类型 数据放入到 session 中: 1.现在前一个页面的form中: input type=hiddenname=testVar value=ss scope=session/ 2. 然后在下面的页面中就可以获得到了 b:write property = testVar / Eos (主要是传参数) 如: 获得
文件上传:
将文件类型的转换为对象类型
数据放入到 session 中:
1. 现在前一个页面的form中:
2. 然后在下面的页面中就可以获得到了 b:write property = "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脚本和
" >
可以传值:、
iframe name = "menuTreeFrame" align = "top" scrolling = "auto" style = "width:100%;height:100%"
src =" com.sinosoft.userrequiements.mywork.FeedBackMyWork.flow?_eosFlowAction=showFlow&processInstId= b:write property = "userRequiements/processinstid" /> " style = "width:100%;height: 100%" frameBorder = 0 >
iframe >
在逻辑流获得用户登录的信息:(eos内置)
页面流获得用户的信息:
解决:分页和重置按钮问题:
查询的:
页面流:
Iframe页面:
分页:
核心代码:
table align = "center" border = "0" cellpadding = "0" cellspacing = "0" width = "100%" >
tr >
td >
iframe name = "queryFrame" id = "queryFrame" src = "" marginWidth = 0 marginHeight = 0 frameborder = "0" scrolling = "no" width = "100%" onload = "autoResize();" > iframe >
td >
tr >
table >
script type = "text/javascript" >
document.form1.submit();
function autoResize() {
try{
document.all[ "queryFrame" ].style.height=queryFrame.document.body.scrollHeight;
}catch (e) {}
}
script >
可以不用写java片段
直接用@就可以