svn commit: r548588 - in /ofbiz/trunk/framework/webtools/webapp/webtools: WEB-INF/controller.xml showDateTime.ftl

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

svn commit: r548588 - in /ofbiz/trunk/framework/webtools/webapp/webtools: WEB-INF/controller.xml showDateTime.ftl

jonesde
Author: jonesde
Date: Mon Jun 18 21:57:48 2007
New Revision: 548588

URL: http://svn.apache.org/viewvc?view=rev&rev=548588
Log:
Added little request to test https and client cert required requests, just shows the current date/time

Added:
    ofbiz/trunk/framework/webtools/webapp/webtools/showDateTime.ftl   (with props)
Modified:
    ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml

Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml?view=diff&rev=548588&r1=548587&r2=548588
==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml Mon Jun 18 21:57:48 2007
@@ -74,30 +74,40 @@
     <!-- End of Security Mappings -->
 
     <!-- Request Mappings -->
+    
+    <!-- Begin Utility Requests -->
     <request-map uri="httpService">
         <event type="java" path="org.ofbiz.service.engine.HttpEngine" invoke="httpEngine"/>
         <response name="success" type="none"/>
         <response name="error" type="none"/>
     </request-map>
-
     <request-map uri="SOAPService">
         <event type="soap"/>
         <response name="error" type="none"/>
         <response name="success" type="none"/>
     </request-map>
-
     <request-map uri="xmlrpc">
         <event type="xmlrpc"/>
         <response name="error" type="none"/>
         <response name="success" type="none"/>
     </request-map>
-
+    <request-map uri="runService">
+        <event type="java" path="org.ofbiz.webapp.event.CoreEvents" invoke="runService"/>
+        <response name="success" type="view" value="main"/>
+        <response name="error" type="view" value="main"/>
+    </request-map>
+    
     <request-map uri="ping">
         <event type="service" invoke="ping"/>
         <response name="error" type="view" value="ping"/>
         <response name="success" type="view" value="ping"/>
     </request-map>
-
+    <request-map uri="showDateTime"><response name="success" type="view" value="showDateTime"/></request-map>
+    <request-map uri="secureDateTime">
+        <security auth="false" https="true" cert="true"/>
+        <response name="success" type="view" value="showDateTime"/>
+    </request-map>
+    
     <request-map uri="TestService">
         <event type="service" invoke="testScv" />
         <response name="error" type="view" value="error"/>
@@ -119,31 +129,25 @@
         <response name="error" type="view" value="main"/>
     </request-map>
 
-    <request-map uri="runService">
-        <event type="java" path="org.ofbiz.webapp.event.CoreEvents" invoke="runService"/>
+    <request-map uri="setSessionLocale">
+        <security https="true" auth="false"/>
+        <event type="java" path="org.ofbiz.common.CommonEvents" invoke="setSessionLocale"/>
         <response name="success" type="view" value="main"/>
         <response name="error" type="view" value="main"/>
     </request-map>
-
+    
     <request-map uri="view">
         <security https="true" auth="false"/>
         <response name="success" type="view" value="main"/>
         <response name="error" type="view" value="error"/>
     </request-map>
-
     <request-map uri="chain">
         <event type="java" path="org.ofbiz.webapp.event.TestEvent" invoke="test"/>
         <response name="success" type="request" value="/view"/>
         <response name="error" type="view" value="error"/>
     </request-map>
-
-    <request-map uri="setSessionLocale">
-        <security https="true" auth="false"/>
-        <event type="java" path="org.ofbiz.common.CommonEvents" invoke="setSessionLocale"/>
-        <response name="success" type="view" value="main"/>
-        <response name="error" type="view" value="main"/>
-    </request-map>
-
+    <!-- End Utility Requests -->
+    
     <request-map uri="main">
         <security https="true" auth="false"/>
         <response name="success" type="view" value="main"/>
@@ -548,7 +552,8 @@
     <view-map name="main" type="screen" page="component://webtools/widget/CommonScreens.xml#main"/>
     <view-map name="login" type="screen" page="component://webtools/widget/CommonScreens.xml#login"/>
     <view-map name="ping" type="ftl" page="/ping.ftl"/>
-
+    <view-map name="showDateTime" type="ftl" page="/showDateTime.ftl"/>
+    
     <view-map name="entityref" type="screen" page="component://webtools/widget/EntityScreens.xml#EntityRef"/>
     <view-map name="entityref_list" type="screen" page="component://webtools/widget/EntityScreens.xml#EntityRefList"/>
     <view-map name="entityref_main" type="screen" page="component://webtools/widget/EntityScreens.xml#EntityRefMain"/>

Added: ofbiz/trunk/framework/webtools/webapp/webtools/showDateTime.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/showDateTime.ftl?view=auto&rev=548588
==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/showDateTime.ftl (added)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/showDateTime.ftl Mon Jun 18 21:57:48 2007
@@ -0,0 +1,19 @@
+<#--
+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.
+-->
+${Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp()}
\ No newline at end of file

Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/showDateTime.ftl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/showDateTime.ftl
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/trunk/framework/webtools/webapp/webtools/showDateTime.ftl
------------------------------------------------------------------------------
    svn:mime-type = text/plain