OAF_开发系列22_实现OAF条形码BarCode

20150717 Created By BaoXinjian

一、摘要


1

二、锁定统计信息


1

三、删除统计信息


1

Thanks and Regards

 

 

    public void processRequest(OAPageContext pageContext, OAWebBean webBean) {

        super.processRequest(pageContext, webBean);

        OAImageBean imgBarCode =

            (OAImageBean)webBean.findIndexedChildRecursive("BarCodeImage");

        OAStaticStyledTextBean textBean =

            (OAStaticStyledTextBean)webBean.findIndexedChildRecursive("BarCodeText");

        String sInputString = "1234";

        StringBuffer sbSource = new StringBuffer();

        //11.5

        //"sbSource.append("/servlet/oracle.apps.ap.oie.framework.barcoding.");

        //R12

        sbSource.append("/OA_HTML/");

        sbSource.append("BarCodeImageServlet");

        sbSource.append("?input=");

        sbSource.append(sInputString);

        imgBarCode.setSource(sbSource.toString());

        textBean.setText(pageContext, sInputString);

    }

 

把OIE条码相关的Servlet配好了)

添加如下Servlet Mapping:

      <servlet>

      <servlet-name>BarCodeImageServlet</servlet-name>

      <servlet-class>oracle.apps.ap.oie.framework.barcoding.BarCodeImageServlet</servlet-

class>

   </servlet>

 

   <servlet-mapping>

      <servlet-name>BarCodeImageServlet</servlet-name>

      <url-pattern>/BarCodeImageServlet</url-pattern>

   </servlet-mapping>

 

参考: 百度文库

 

posted on 2015-07-18 10:19  东方瀚海  阅读(790)  评论(0编辑  收藏  举报