public class ServletDataSet extends DataSet
| Constructor and Description |
|---|
ServletDataSet()
Constructs a default ServletDataSet object.
|
ServletDataSet(int initCapacity)
Constructs a ServletDataSet
with a specified initial capacity.
|
| Modifier and Type | Method and Description |
|---|---|
void |
importRequest(javax.servlet.http.HttpServletRequest request)
Imports the HTML field names and corresponding values from a
javax.servlet.http.HttpServletRequest object.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, toString, valuespublic ServletDataSet()
public ServletDataSet(int initCapacity)
initCapacity - Initial capacitypublic void importRequest(javax.servlet.http.HttpServletRequest request)
The following sample code adds a parameter named "REQUEST_TIME" to the parameters imported from request before calling the BEA Tuxedo service "DEBIT". This code would typically be in a servlet's doPost or doGet method.
ServletDataSet dataset = new ServletDataSet();
// Import the HTML form fields from the HttpServletRequest
dataset.importRequest(request);
// Add the REQUEST_TIME parameter to the input data set
dataset.setValue("REQUEST_TIME", (new Date()).toString());
// ... Insert code to get the servlet session pool
// Call the DEBIT service using the combined input data
session_pool.call ("DEBIT", dataset, null);
request - HttpServletReques objectServletSessionPool.call(java.lang.String, javax.servlet.http.HttpServletRequest)Copyright © 1996, 2024, Oracle and/or its affiliates.