roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r425582 - in /incubator/roller/branches/roller_3.0: src/org/apache/roller/ui/core/struts/actions/CreateWebsiteAction.java web/WEB-INF/jsps/authoring/CreateWebsite.jsp
Date Wed, 26 Jul 2006 01:19:16 GMT
Author: agilliland
Date: Tue Jul 25 18:19:16 2006
New Revision: 425582

URL: http://svn.apache.org/viewvc?rev=425582&view=rev
Log:
preview url on create website page needs to be absolute.


Modified:
    incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/core/struts/actions/CreateWebsiteAction.java
    incubator/roller/branches/roller_3.0/web/WEB-INF/jsps/authoring/CreateWebsite.jsp

Modified: incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/core/struts/actions/CreateWebsiteAction.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/core/struts/actions/CreateWebsiteAction.java?rev=425582&r1=425581&r2=425582&view=diff
==============================================================================
--- incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/core/struts/actions/CreateWebsiteAction.java
(original)
+++ incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/core/struts/actions/CreateWebsiteAction.java
Tue Jul 25 18:19:16 2006
@@ -249,6 +249,9 @@
                 website = wd;
             }
         }
+        public String getAbsoluteURL() {
+            return RollerRuntimeConfig.getAbsoluteContextURL();
+        }
         public String getContextURL() {
             return contextURL;
         }

Modified: incubator/roller/branches/roller_3.0/web/WEB-INF/jsps/authoring/CreateWebsite.jsp
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/web/WEB-INF/jsps/authoring/CreateWebsite.jsp?rev=425582&r1=425581&r2=425582&view=diff
==============================================================================
--- incubator/roller/branches/roller_3.0/web/WEB-INF/jsps/authoring/CreateWebsite.jsp (original)
+++ incubator/roller/branches/roller_3.0/web/WEB-INF/jsps/authoring/CreateWebsite.jsp Tue
Jul 25 18:19:16 2006
@@ -65,7 +65,7 @@
         <html:text property="handle" size="30" maxlength="30" onkeyup="handlePreview()"
/><br />
         <span style="text-size:70%">
             <fmt:message key="createWebsite.weblogUrl" />:&nbsp;
-            <c:out value="${model.baseURL}" />/page/<span id="handlePreview" style="color:red">handle</span>
+            <c:out value="${model.absoluteURL}" />/<span id="handlePreview" style="color:red">handle</span>
         </span>
     </td>
     <td class="description"><fmt:message key="createWebsite.tip.handle" /></td>



Mime
View raw message