普元EOS6.2学习总结

 

文件上传:

 

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

 


数据放入到session中:

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

<input type="hidden"name="testVar" value="ss" scope="session"/>

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脚本和<b:write property="userRequiements/requiementId"/>

<w:tabPanel id="manage"defaultTab="dictManager" height="100%"width="100%">

        <w:tabPageid="dictManager" onRefreshFunc="refreshPage1"  tabType="iframe" allowReload="true"allowSelect="true" cache="true" title="准备"url="com.sinosoft.userrequiements.auditmanager.UserRequiementsAuditInit.flow?_eosFlowAction=auditPrepare&requiementId=<%=reqId%>" >         <!-- 准备 -->

       </w:tabPage>

可以传值:、

<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内置)


页面流获得用户的信息:


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

查询的:

页面流:



 

Iframe页面:


分页:


核心代码:

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

     <tr>

         <td>

         <iframename="queryFrame"id="queryFrame"src=""  marginWidth=0marginHeight=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>

 

 

 

 

<wf:selectActParticipant processInstID="@userRequiements/processinstid"
可以不用写java片段

直接用@就可以

就是,eos标签访问property指定的xpath值的访问方式

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章