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>
参考: 百度文库