roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r724145 - in /roller/trunk/apps/weblogger/docs/examples/plugins/pluginmodel: build.xml src/org/apache/roller/examples/plugins/pagemodel/AuthenticatedUserModel.java
Date Sun, 07 Dec 2008 15:42:16 GMT
Author: snoopdave
Date: Sun Dec  7 07:42:16 2008
New Revision: 724145

URL: http://svn.apache.org/viewvc?rev=724145&view=rev
Log:
Applying patch from Ganesh:
   https://issues.apache.org/roller/browse/ROL-1764

Modified:
    roller/trunk/apps/weblogger/docs/examples/plugins/pluginmodel/build.xml
    roller/trunk/apps/weblogger/docs/examples/plugins/pluginmodel/src/org/apache/roller/examples/plugins/pagemodel/AuthenticatedUserModel.java

Modified: roller/trunk/apps/weblogger/docs/examples/plugins/pluginmodel/build.xml
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/docs/examples/plugins/pluginmodel/build.xml?rev=724145&r1=724144&r2=724145&view=diff
==============================================================================
--- roller/trunk/apps/weblogger/docs/examples/plugins/pluginmodel/build.xml (original)
+++ roller/trunk/apps/weblogger/docs/examples/plugins/pluginmodel/build.xml Sun Dec  7 07:42:16
2008
@@ -14,6 +14,7 @@
                 <pathelement path="${tools}/roller-core/roller-core.jar" />
                 <pathelement path="${tools}/lib/commons-logging-1.0.4.jar" />
                 <pathelement path="${tools}/buildtime/tomcat-5.0.28/servlet-api.jar" />
+                <pathelement path="${tools}/buildtime/tomcat-5.0.28/jsp-api.jar" />
             </classpath>
         </javac>
         <jar basedir="build" destfile="dist/authusermodel.jar" />

Modified: roller/trunk/apps/weblogger/docs/examples/plugins/pluginmodel/src/org/apache/roller/examples/plugins/pagemodel/AuthenticatedUserModel.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/docs/examples/plugins/pluginmodel/src/org/apache/roller/examples/plugins/pagemodel/AuthenticatedUserModel.java?rev=724145&r1=724144&r2=724145&view=diff
==============================================================================
--- roller/trunk/apps/weblogger/docs/examples/plugins/pluginmodel/src/org/apache/roller/examples/plugins/pagemodel/AuthenticatedUserModel.java
(original)
+++ roller/trunk/apps/weblogger/docs/examples/plugins/pluginmodel/src/org/apache/roller/examples/plugins/pagemodel/AuthenticatedUserModel.java
Sun Dec  7 07:42:16 2008
@@ -3,6 +3,8 @@
 
 import java.util.Map;
 import javax.servlet.http.HttpServletRequest;
+import javax.servlet.jsp.PageContext;
+
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.roller.weblogger.ui.core.RollerSession;
@@ -20,7 +22,8 @@
     }
 
     public void init(Map params) throws WebloggerException {
-        this.request = (HttpServletRequest)params.get("request");
+    	PageContext context = (PageContext)params.get("pageContext");
+    	this.request = (HttpServletRequest) context.getRequest();
     }
     
     public UserWrapper getUser() {



Mime
View raw message