You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2013/02/23 10:07:05 UTC

svn commit: r1449286 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CatalogUrlServlet.java

Author: jleroux
Date: Sat Feb 23 09:07:05 2013
New Revision: 1449286

URL: http://svn.apache.org/r1449286
Log:
I was pretty stupid to blindly follow mad advice from Eclipse. I really don't understand why it find an error there, nevermind

Modified:
    ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CatalogUrlServlet.java

Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CatalogUrlServlet.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CatalogUrlServlet.java?rev=1449286&r1=1449285&r2=1449286&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CatalogUrlServlet.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/category/CatalogUrlServlet.java Sat Feb 23 09:07:05 2013
@@ -156,7 +156,7 @@ public class CatalogUrlServlet extends H
 
     public static String makeCatalogUrl(HttpServletRequest request, String productId, String currentCategoryId, String previousCategoryId) {
         StringBuilder urlBuilder = new StringBuilder();
-        urlBuilder.append(((HttpServletRequest) request.getSession().getServletContext()).getContextPath());
+        urlBuilder.append(request.getSession().getServletContext().getContextPath());
         if (urlBuilder.charAt(urlBuilder.length() - 1) != '/') {
             urlBuilder.append("/");
         }