ofbiz错误处理之二

screen widgets是通过OFBiz中一个screen widgets处理器处理的。在目录${webapp:learning}\WEB-INF中,新建controller.xml文件,并输入如下内容:

---------------------------------------------------

xmlversion="1.0"encoding="UTF-8"?>

<site-confxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/site-conf.xsd">

    <description>Learning Module Site Configuration Filedescription>

   <handlername="screen"type="view"class="org.ofbiz.widget.screen.ScreenWidgetViewHandler"/>

site-conf>

因为版本问题,博主学习的时候,ofbiz代码已经集合到common/webcommon/WEB-INF/handlers-controller.xml中了,所以粉红色部分就不用这样写,以后同样的handler处理就可以直接使用

或者

handlers-controller.xml" />

调用就可以了

你可能感兴趣的:(ofbiz)