Products | Versions |
---|---|
TIBCO BusinessEvents Enterprise Edition | - |
Not Applicable | - |
Description:
Description
=========
In TIBCO BusinessEvents 5.1.1 - HF6, The HTTP Servlet catalog function sendRedirectTo() does not redirect the response to the specified URL.
Environment
=========
TIBCO BusinessEvents Version 5.1.1 HF 6
Symptoms
========
The HTTP Servlet catalog function sendRedirectTo() does not redirect the response to the specified URL.
Cause
=====
This is due to a defect in Tomcat version bundled in this release.
Resolution
========
Defect exists to correct the behavior in a future release.
Workaround
==========
To achieve the redirection, replace [redirectURL] in the following code snippet by the new URL you want to redirect to:
String htmlData = "<html><head><meta http-equiv=\"refresh\" content=\"0;url=[redirectURL]\"></head></html>";
HTTP.Servlet.Response.setResponseHeader(servletResponse, "Content-type", "text/html");
HTTP.Servlet.Response.setResponseStatusCode(servletResponse,200);
HTTP.Servlet.Response.setResponseContent(asyncContextObject, htmlData, false);
Symptoms:
Cause: