portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smi...@apache.org
Subject svn commit: r481212 - /portals/jetspeed-2/trunk/components/header-resource/src/java/org/apache/jetspeed/headerresource/impl/HeaderResourceImpl.java
Date Fri, 01 Dec 2006 10:03:55 GMT
Author: smilek
Date: Fri Dec  1 02:03:54 2006
New Revision: 481212

URL: http://svn.apache.org/viewvc?view=rev&rev=481212
Log:
added servletPath as standard variable in dojo initialization

Modified:
    portals/jetspeed-2/trunk/components/header-resource/src/java/org/apache/jetspeed/headerresource/impl/HeaderResourceImpl.java

Modified: portals/jetspeed-2/trunk/components/header-resource/src/java/org/apache/jetspeed/headerresource/impl/HeaderResourceImpl.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/components/header-resource/src/java/org/apache/jetspeed/headerresource/impl/HeaderResourceImpl.java?view=diff&rev=481212&r1=481211&r2=481212
==============================================================================
--- portals/jetspeed-2/trunk/components/header-resource/src/java/org/apache/jetspeed/headerresource/impl/HeaderResourceImpl.java
(original)
+++ portals/jetspeed-2/trunk/components/header-resource/src/java/org/apache/jetspeed/headerresource/impl/HeaderResourceImpl.java
Fri Dec  1 02:03:54 2006
@@ -990,7 +990,8 @@
         StringBuffer preinitOut = new StringBuffer();
         //preinitOut.append( "    " ).append( "function de_jsessionid_url(url){var tEnds
= url.indexOf(';jsessionid=');if (tEnds > 0) url = url.substring(0, tEnds);return url;}"
).append( EOL );
         // presence of ;jsessionid in dojo baseScriptUri is bad news
-        preinitOut.append( "    " ).append( "djConfig.baseScriptUri = \"" ).append( getPortalResourceUrl(
dojoGetPath(), false ) ).append( "\";" );
+        preinitOut.append( "    " ).append( "djConfig.baseScriptUri = \"" ).append( getPortalResourceUrl(
dojoGetPath(), false ) ).append( "\";" ).append( EOL );
+        preinitOut.append( "    " ).append( "djConfig.jetspeed.servletPath = \"" ).append(
this.requestContext.getRequest().getServletPath() ).append( "\";" );
         return preinitOut.toString();
     }
     protected String dojoGenerateInit()



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message