You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by vk...@apache.org on 2009/03/23 16:48:49 UTC
svn commit: r757418 -
/portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/applications/gems/src/java/org/apache/portals/gems/file/FilePortlet.java
Author: vkumar
Date: Mon Mar 23 15:48:49 2009
New Revision: 757418
URL: http://svn.apache.org/viewvc?rev=757418&view=rev
Log:
Faling back to session. in-case request param is null
Modified:
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/applications/gems/src/java/org/apache/portals/gems/file/FilePortlet.java
Modified: portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/applications/gems/src/java/org/apache/portals/gems/file/FilePortlet.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/applications/gems/src/java/org/apache/portals/gems/file/FilePortlet.java?rev=757418&r1=757417&r2=757418&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/applications/gems/src/java/org/apache/portals/gems/file/FilePortlet.java (original)
+++ portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/applications/gems/src/java/org/apache/portals/gems/file/FilePortlet.java Mon Mar 23 15:48:49 2009
@@ -117,7 +117,10 @@
// NOTE: this is Jetspeed specific
HttpServletRequest req = getHttpServletRequest(request);
String fileName = req.getParameter("file");
-
+ if(fileName==null)
+ {
+ fileName = (String) req.getSession().getAttribute("file");
+ }
if (fileName != null && !fileName.equals(""))
{
InputStream is = null;
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org