svn commit: r1787535 - /ofbiz/ofbiz-framework/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1787535 - /ofbiz/ofbiz-framework/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml

jleroux@apache.org
Author: jleroux
Date: Sat Mar 18 09:23:12 2017
New Revision: 1787535

URL: http://svn.apache.org/viewvc?rev=1787535&view=rev
Log:
Fixed: Induce Model XML from Database throws exception
(OFBIZ-7473)

Go to Webtools -> Import/Export -> Induce Model XML from Database
(https://localhost:8443/webtools/control/view/ModelInduceFromDb)
An exception is thrown: javax.servlet.ServletException: File
[/entity/ModelInduceFromDb.jsp] not found.

jleroux: after moving FTL template to the template sub-dir we forgot links
in the ctrlr. Changing the ctrlr is the best way.

Thanks: Thanks Gopal Yadav for the report . William Wang for the real cause

Modified:
    ofbiz/ofbiz-framework/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml

Modified: ofbiz/ofbiz-framework/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml?rev=1787535&r1=1787534&r2=1787535&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml (original)
+++ ofbiz/ofbiz-framework/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml Sat Mar 18 09:23:12 2017
@@ -584,18 +584,18 @@ under the License.
     <view-map name="ViewRelations" type="screen" page="component://webtools/widget/EntityScreens.xml#ViewRelations"/>
 
     <!-- these are NOT regions because they generate text output that should never be decorated -->
-    <view-map name="tablesMySql" page="/entity/tablesMySql.jsp"/>
-    <view-map name="droptablesMySql" page="/entity/droptablesMySql.jsp"/>
-    <view-map name="droptablesplain" page="/entity/droptablesplain.jsp"/>
-    <view-map name="dataMySql" page="/entity/dataMySql.jsp"/>
-    <view-map name="ModelWriter" page="/entity/ModelWriter.jsp"/>
-    <view-map name="ModelGroupWriter" page="/entity/ModelGroupWriter.jsp"/>
-    <view-map name="ModelInduceFromDb" page="/entity/ModelInduceFromDb.jsp"/>
+    <view-map name="tablesMySql" page="template/entity/tablesMySql.jsp"/>
+    <view-map name="droptablesMySql" page="template/entity/droptablesMySql.jsp"/>
+    <view-map name="droptablesplain" page="template/entity/droptablesplain.jsp"/>
+    <view-map name="dataMySql" page="template/entity/dataMySql.jsp"/>
+    <view-map name="ModelWriter" page="template/entity/ModelWriter.jsp"/>
+    <view-map name="ModelGroupWriter" page="template/entity/ModelGroupWriter.jsp"/>
+    <view-map name="ModelInduceFromDb" page="template/entity/ModelInduceFromDb.jsp"/>
     <view-map name="EntityEoModelBundle" type="screen" page="component://webtools/widget/EntityScreens.xml#EntityEoModelBundle"/>
 
     <view-map name="checkdb" type="screen" page="component://webtools/widget/EntityScreens.xml#CheckDb"/>
     <view-map name="xmldsdump" type="screen" page="component://webtools/widget/EntityScreens.xml#xmldsdump"/>
-    <view-map name="xmldsrawdump" page="/entity/xmldsrawdump.jsp"/>
+    <view-map name="xmldsrawdump" page="template/entity/xmldsrawdump.jsp"/>
 
     <view-map name="FindUtilCache" type="screen" page="component://webtools/widget/CacheScreens.xml#FindUtilCache"/>
     <view-map name="FindUtilCacheElements" type="screen" page="component://webtools/widget/CacheScreens.xml#FindUtilCacheElements"/>