20150717 Created By BaoXinjian

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


1

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


1

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


1

Thanks and Regards

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

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>

参考: 百度文库

05-11 13:15