You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jc...@apache.org on 2007/05/30 16:59:36 UTC
svn commit: r542832 -
/incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/settings/Settings.java
Author: jcompagner
Date: Wed May 30 07:59:35 2007
New Revision: 542832
URL: http://svn.apache.org/viewvc?view=rev&rev=542832
Log:
stackoverflow fix. AlMaw can you check this out more? Our server also gives this a lot so i have to fix it quickly
Modified:
incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/settings/Settings.java
Modified: incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/settings/Settings.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/settings/Settings.java?view=diff&rev=542832&r1=542831&r2=542832
==============================================================================
--- incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/settings/Settings.java (original)
+++ incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/settings/Settings.java Wed May 30 07:59:35 2007
@@ -450,7 +450,7 @@
// context path from the servlet context, which is just stupid.
if (contextPath == null && RequestCycle.get().getRequest() instanceof WebRequest)
{
- contextPath = ((WebRequest)RequestCycle.get().getRequest()).getContextPath();
+ contextPath = ((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getContextPath();
}
return contextPath;
}