BBjspWebResponse::encodeRedirectURL (Deprecated)
The BBJSP system is deprecated. For new development, use BBxServlet.
Description
In BBj 16.0 and higher, this method encodes the specified URL for use in the BBjspWebResponse::sendRedirect(String) method or, if encoding is not needed, returns the URL unchanged. The implementation of this method includes the logic to determine whether the session ID needs to be encoded in the URL. Because the rules for making this determination can differ from those used to decide whether to encode a normal link, this method is separated from the encodeURL method.
All URLs sent to the BBjspWebResponse::sendRedirect(String) method should be run through this method. Otherwise, URL rewriting cannot be used with browsers which do not support cookies.
Syntax
Return Value |
Method |
String |
encodeRedirectURL(string url) |
Parameters
Variable |
Description |
url |
the url to be encoded. |
Return Value
the encoded URL if encoding is needed; the unchanged URL otherwise.
Remarks
The example below shows encoding a URL for redirect
Example
This example demonstrates how this works in a BBJSP web-page
<html> |
This example demonstrates how this works in a BBJSP servlet
class public MyServlet |