portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r547484 - in /portals/jetspeed-2/trunk/applications/demo/src: java/org/apache/jetspeed/demo/simple/PickANumberPortlet.java webapp/WEB-INF/demo/simple/PickANumber.jsp
Date Fri, 15 Jun 2007 01:54:29 GMT
Author: taylor
Date: Thu Jun 14 18:54:28 2007
New Revision: 547484

URL: http://svn.apache.org/viewvc?view=rev&rev=547484
Log:
JS2-694 -- example of redirect: works in /portal, but not in /desktop

Modified:
    portals/jetspeed-2/trunk/applications/demo/src/java/org/apache/jetspeed/demo/simple/PickANumberPortlet.java
    portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/demo/simple/PickANumber.jsp

Modified: portals/jetspeed-2/trunk/applications/demo/src/java/org/apache/jetspeed/demo/simple/PickANumberPortlet.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/demo/src/java/org/apache/jetspeed/demo/simple/PickANumberPortlet.java?view=diff&rev=547484&r1=547483&r2=547484
==============================================================================
--- portals/jetspeed-2/trunk/applications/demo/src/java/org/apache/jetspeed/demo/simple/PickANumberPortlet.java
(original)
+++ portals/jetspeed-2/trunk/applications/demo/src/java/org/apache/jetspeed/demo/simple/PickANumberPortlet.java
Thu Jun 14 18:54:28 2007
@@ -197,6 +197,11 @@
             return;
         }
         
+        if (request.getParameter("redirect-test") != null)
+        {
+            actionResponse.sendRedirect("/jetspeed/desktop/rss.psml");
+            return;
+        }
         Long guessCount = null;
         Long targetValue = null;
         Long currentGuess = null;

Modified: portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/demo/simple/PickANumber.jsp
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/demo/simple/PickANumber.jsp?view=diff&rev=547484&r1=547483&r2=547484
==============================================================================
--- portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/demo/simple/PickANumber.jsp
(original)
+++ portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/demo/simple/PickANumber.jsp
Thu Jun 14 18:54:28 2007
@@ -26,6 +26,10 @@
 	<portlet:param name="myParam" value="testParam"/>
 </portlet:actionURL>
 
+<portlet:actionURL var="myRedirect">
+	<portlet:param name="redirect-test" value="true"/>
+</portlet:actionURL>
+
 <%
     PortletSession portletSession = renderRequest.getPortletSession(true);
     Long value = (Long)portletSession.getAttribute("LastGuess", PortletSession.APPLICATION_SCOPE);
   
@@ -113,3 +117,5 @@
   <a href='<%=minMe%>'>Min</a>
   <a href='<%=normalMe%>'>Normal</a>
 </c:if>
+
+<a href='<%=myRedirect%>'>Redirect Test</a>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message