All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.util.Dictionary
|
+----java.util.Hashtable
|
+----bea.jolt.pool.DataSet
|
+----bea.jolt.pool.servlet.ServletDataSet
public ServletDataSet()
public ServletDataSet(int initCapacity)
public void importRequest(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);
All Packages Class Hierarchy This Package Previous Next Index