ITeye博客

ofbiz入门教程(3)上心得

gebobby · 2014-07-24 13:30 · ofbiz教程 · 互联网 · Markdown

1、官方资料未具体写出control.xml的配置,但必须修改,否则不能映射用户请求 具体配置如下:

<description>Example Component Site Configuration File</description>
<owner>Copyright 2001-2009 The Apache Software Foundation</owner>

<handler name="screen" type="view" class="org.ofbiz.widget.screen.ScreenWidgetViewHandler"/>
<!-- Request Mappings -->
<request-map uri="main">
	<security https="false" auth="false"/>
	<response name="success" type="view" value="main"/>
</request-map>

	<request-map uri="person">
	<security https="false" auth="false"/>
	<response name="success" type="view" value="person"/>
</request-map>
    
<!-- end of request mappings -->
<!-- View Mappings -->       
<view-map name="main" type="screen" page="component://practice/widget/PracticeScreens.xml#main"/>
	<view-map name="person" type="screen" page="component://practice/widget/PracticeScreens.xml#person"/>

<!-- change the path to the following if the above doesn't work for you -->
<!-- <view-map name="main" type="screen" page="component://practice/webapp/practice/widget/PracticeScreens.xml#main"/> -->
<!-- end of view mappings -->

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。