incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r600581 - in /incubator/sling/trunk/microsling/microsling-core/src/main: java/org/apache/sling/microsling/slingservlets/MicrojaxPostServlet.java webapp/content-creation-forms.html
Date Mon, 03 Dec 2007 16:14:40 GMT
Author: bdelacretaz
Date: Mon Dec  3 08:14:36 2007
New Revision: 600581

URL: http://svn.apache.org/viewvc?rev=600581&view=rev
Log:
display extension parameter name was wrong in content-creation-forms.html, fixed

Modified:
    incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/MicrojaxPostServlet.java
    incubator/sling/trunk/microsling/microsling-core/src/main/webapp/content-creation-forms.html

Modified: incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/MicrojaxPostServlet.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/MicrojaxPostServlet.java?rev=600581&r1=600580&r2=600581&view=diff
==============================================================================
--- incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/MicrojaxPostServlet.java
(original)
+++ incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/MicrojaxPostServlet.java
Mon Dec  3 08:14:36 2007
@@ -204,7 +204,11 @@
             redirectPath = currentNode.getPath();
         }
         if(redirectExtension!=null) {
-            redirectPath += redirectExtension;
+            if(redirectExtension.startsWith(".")) {
+                redirectPath += redirectExtension;
+            } else {
+                redirectPath += "." + redirectExtension;
+            }
         }
 
         final String redirectUrl =

Modified: incubator/sling/trunk/microsling/microsling-core/src/main/webapp/content-creation-forms.html
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/microsling/microsling-core/src/main/webapp/content-creation-forms.html?rev=600581&r1=600580&r2=600581&view=diff
==============================================================================
--- incubator/sling/trunk/microsling/microsling-core/src/main/webapp/content-creation-forms.html
(original)
+++ incubator/sling/trunk/microsling/microsling-core/src/main/webapp/content-creation-forms.html
Mon Dec  3 08:14:36 2007
@@ -16,7 +16,7 @@
   
   <div>
     <form class="testbox" action="content/testing/*" method="POST">
-      <input type="hidden" name="slingDisplayExtension" value="html"/>
+      <input type="hidden" name="ujax_displayExtension" value="html"/>
       
       <h1>SlingPostServlet content creation form</h1>
       <p>



Mime
View raw message