GetRequestDOM

Description

This JSP function constructs a YFCElement containing all of the XML elements that could be created out of the request parameters that are available when this function is called. When a particular screen is "posted", the input fields on the screen that are bound to XML values can be accessed via this function. The YFCElement that is constructed contains the following structure:

<root>
   <namespace1 ... />
   <namespace2 .../>
   ... 
</root>

This function is useful when you need to access the posted XML values in the proper XML structure for some JSP processing.

Syntax

String getRequestDOM()

Input parameters

None.

Output parameters

A YFCElement containing all of the XMLs that could be created out of the request parameters that were available when this function was called.

JSP usage

The following example shows the output of getRequestDOM if the following input fields are posted:

<input type="hidden" name="xml:/Order/@OrderNo" value="Order0001"/> 
<input type="hidden" name="xml:/Order/@OrderType" value="Customer"/> 
<input type="hidden" name="xml:/User/@UserName" value="user01"/>

Output of getRequestDOM is:

<root> 
  <Order OrderNo="Order0001" OrderType="Customer"/>
  <User UserName="user01"/> 
</root>