[opencms-dev] Forwarding Requests in OpenCms - CmsFlexRequestDispatcher

kevin fong kfong at spto.org
Mon Jul 19 22:26:00 CEST 2004


Hi all,

Just wondering how can requests be forwarded in openCms, the objective is to send the entire http request object to another jsp if x condition occurs.  According to the APIs as below, the CmsFlexRequestDispatcher.forward() method should not be used.  sendRedirect won't work because there are several parameters/attributes to be forwarded to the next page which will not fit in the url string. Appreciate any suggested workarounds/solutions.

Regds,
Kevin.

CmsFlexRequestDispatcher

forward
public void forward(javax.servlet.ServletRequest req,
                    javax.servlet.ServletResponse res)
             throws javax.servlet.ServletException,
                    java.io.IOException

Wrapper for the standard servlet API call.
Forward calls are actually NOT wrapped by OpenCms as of now. So they should not be used in JSP pages or servlets.






More information about the opencms-dev mailing list