From 47ea44596f5a05f802f40ee8965de9e092b4def9 Mon Sep 17 00:00:00 2001 From: Shi Jinghai Date: Sun, 6 Sep 2015 04:34:16 +0000 Subject: [PATCH] OFBIZ-6601 example component causes exceptions 1. Add specialpurpose/webapp/exampleext/error/error.jsp to display error page. 2. Move specialpurpose/example/widget/exampleext to specialpurpose/exampleext/widget/example. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1701441 13f79535-47bb-0310-9956-ffa450edef68 --- .../webapp/exampleext/error/error.jsp | 52 +++++++++++++++++++ .../widget/example}/ExampleForms.xml | 0 .../widget/example}/ExampleMenus.xml | 0 3 files changed, 52 insertions(+) create mode 100644 specialpurpose/exampleext/webapp/exampleext/error/error.jsp rename specialpurpose/{example/widget/exampleext => exampleext/widget/example}/ExampleForms.xml (100%) rename specialpurpose/{example/widget/exampleext => exampleext/widget/example}/ExampleMenus.xml (100%) diff --git a/specialpurpose/exampleext/webapp/exampleext/error/error.jsp b/specialpurpose/exampleext/webapp/exampleext/error/error.jsp new file mode 100644 index 0000000000..8bca43325e --- /dev/null +++ b/specialpurpose/exampleext/webapp/exampleext/error/error.jsp @@ -0,0 +1,52 @@ +<%-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--%> +<%@ page import="org.ofbiz.base.util.*" %> + + +Open For Business Message + + + +<% String errorMsg = (String) request.getAttribute("_ERROR_MESSAGE_"); %> + + +
+
+ + + + +
+ + + + + + + +
+
:ERROR MESSAGE:
+
+
<%=UtilFormatOut.replaceString(errorMsg, "\n", "
")%>
+
+
+
+
+ + \ No newline at end of file diff --git a/specialpurpose/example/widget/exampleext/ExampleForms.xml b/specialpurpose/exampleext/widget/example/ExampleForms.xml similarity index 100% rename from specialpurpose/example/widget/exampleext/ExampleForms.xml rename to specialpurpose/exampleext/widget/example/ExampleForms.xml diff --git a/specialpurpose/example/widget/exampleext/ExampleMenus.xml b/specialpurpose/exampleext/widget/example/ExampleMenus.xml similarity index 100% rename from specialpurpose/example/widget/exampleext/ExampleMenus.xml rename to specialpurpose/exampleext/widget/example/ExampleMenus.xml