svn commit: r462775 - /incubator/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r462775 - /incubator/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java

jonesde
Author: jonesde
Date: Wed Oct 11 04:41:42 2006
New Revision: 462775

URL: http://svn.apache.org/viewvc?view=rev&rev=462775
Log:
Added a new request response type: request-redirect-noparam that will redirect to a request without adding all of the parameters to the URL; not sure how this never got implemented before...

Modified:
    incubator/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java

Modified: incubator/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java?view=diff&rev=462775&r1=462774&r2=462775
==============================================================================
--- incubator/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java (original)
+++ incubator/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java Wed Oct 11 04:41:42 2006
@@ -375,6 +375,11 @@
                 Debug.logInfo("[RequestHandler.doRequest]: Response is a Request redirect.", module);
                 nextView = nextView.substring(17);
                 callRedirect(makeLinkWithQueryString(request, response, "/" + nextView), response, request);
+            } else if (nextView != null && nextView.startsWith("request-redirect-noparam:")) {
+                // check for a Request redirect
+                Debug.logInfo("[RequestHandler.doRequest]: Response is a Request redirect with no parameters.", module);
+                nextView = nextView.substring(25);
+                callRedirect(makeLink(request, response, nextView), response, request);
             } else if (nextView != null && nextView.startsWith("view:")) {
                 // check for a View
                 Debug.logInfo("[RequestHandler.doRequest]: Response is a view.", module);