58.101 REDIRECT_URL Procedure
This procedure calls owa_util.redirect_url
to tell the browser to redirect to a new URL. Afterwards, it automatically calls apex_application.stop_apex_engine
to abort further processing of the Oracle APEX application.
Syntax
APEX_UTIL.REDIRECT_URL (
p_url IN VARCHAR2,
p_reset_htp_buffer IN BOOLEAN DEFAULT TRUE );
Parameters
Parameter | Description |
---|---|
p_url |
The URL the browser requests. |
p_reset_htp_buffer |
Set to TRUE to reset the HTP buffer to make sure the browser understands the redirect to the new URL and is not confused by data that is already written to the HTP buffer. Set to FALSE if the application has its own cookie to use in the response.
|
Example
The following example tells the browser to redirect to http://www.example.com
and immediately stops further processing.
apex_util.redirect_url (
p_url => 'http://www.example.com/' );
Parent topic: APEX_UTIL