Author: jleroux
Date: Mon Oct 21 17:01:03 2013
New Revision: 1534276
URL: http://svn.apache.org/r1534276
Log:
No functional change, fixes this message in Eclipse "The method
getContextPath() is undefined for the type ServletContext" which does not
prevent to compile though. Compiled with Oracle JVM 1.6.0.45
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java?rev=1534276&r1=1534275&r2=1534276&view=diff
==============================================================================
---
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java
(original)
+++
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java
Mon Oct 21 17:01:03 2013
@@ -70,7 +70,7 @@ public class ControlServlet extends Http
@Override
public void init(ServletConfig config) throws ServletException {
super.init(config);
- if (Debug.infoOn()) Debug.logInfo("LOADING WEBAPP [" +
config.getServletContext().getContextPath().substring(1) + "] " +
config.getServletContext().getServletContextName() + ", located at " +
config.getServletContext().getRealPath("/"), module);
+ if (Debug.infoOn()) Debug.logInfo("LOADING WEBAPP [" +
((HttpServletRequest) config.getServletContext()).getContextPath().substring(1)
+ "] " + config.getServletContext().getServletContextName() + ", located at " +
config.getServletContext().getRealPath("/"), module);
// configure custom BSF engines
configureBsf();