GetParameter
You can review the details about the getParameter JSP function.
Description
This JSP function obtains the value of the parameter requested from the pageContext() function and requests in the following order:
pageContext.getAttribute() -> If not found -> request.getAttribute() -> If not found -> request.getParameter()
This function is typically used to extract the parameters specified while using various Presentation Framework JSP tags such as yfc:makeXMLKey and yfc:loopXML.
Syntax
String getParameter(String paramName);
Input parameters
paramName - Required. Name of the parameter whose value is required.
Example
This example shows how an order list view shows a hyperlinked order number that opens the default detail view. The yfc:makeXMLInput JSP tag uses the keys specified to prepare and stores the XML. The XML can be extracted using the getParameter() function.
<table class="table" editable="false" width="100%" cellspacing="0">
<thead>
<tr>
<td sortable="no" class="checkboxheader">
<input type="checkbox" name="checkbox" value="checkbox"
onclick="doCheckAll(this);"/>
</td>
<td class="tablecolumnheader"><yfc:i18n>Order_#</yfc:i18n></td>
<td class="tablecolumnheader"><yfc:i18n>Enterprise</yfc:i18n></td>
</tr>
</thead>
<tbody>
<yfc:loopXML binding="xml:/OrderList/@Order" id="Order">
<tr>
<yfc:makeXMLInput name="orderKey">
<yfc:makeXMLKey binding="xml:/Order/@OrderHeaderKey"
value="xml:/Order/@OrderHeaderKey" />
</yfc:makeXMLInput>
<td class="checkboxcolumn">
<input type="checkbox" value='<%=getParameter("orderKey")%>'
name="EntityKey"/>
</td>
<td class="tablecolumn"><a
href="javascript:showDetailFor('<%=getParameter("orderKey")%>');">
<yfc:getXMLValue binding="xml:/Order/@OrderNo"/></a>
</td>
<td class="tablecolumn"><yfc:getXMLValue
binding="xml:/Order/@EnterpriseCode"/>
</td>
</tr>
</yfc:loopXML>
</tbody>
</table>