BBjspWebRequest (Deprecated)
The BBJSP system is deprecated. For new development, use BBxServlet.
Description
In BBj 16.0 and higher, the BBjspWebRequest object provides methods for querying the state of an HTTP request.
The BBjspWebRequest provides a temporary store for attributes that are available during the processing of the current page and any CustomTag used in page processing.
Creation
BBJSP > BBjspPageContext > BBjspWebRequest
The BBjspWebRequest is created through the following BBjspPageContext method:
Return Value |
Method |
---|---|
BBjspWebRequest |
Methods of BBjspWebRequest
Return Value |
Method |
---|---|
Object |
getAttribute(string name) |
string |
|
string |
getBody() |
string |
|
int |
|
string |
|
string |
|
getFileUpload(string name) |
|
string |
getHeader(string name) |
getHeaders(string name) |
|
string |
|
string |
|
int |
|
Locale |
|
string |
|
string |
getParameter(string name) |
getParameterValues(string name) |
|
string |
|
string |
|
string |
|
string |
|
string |
|
int |
|
string |
|
string |
|
string |
|
string |
|
string |
|
string |
|
int |
|
string |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
isSecure() |
void |
removeAttribute(string name) |
void |
setAttribute(string name, Object value) |
Example
This example demonstrates how this works in a BBJSP web-page
<%@ taglib uri='/WEB-CFG/tld/core.tld' prefix='c' %> |
This example demonstrates how this works in a BBJSP servlet
class public MyServlet |