GetLocale

You can review the details about the getLocale JSP function.

Description

This JSP function returns a YFCLocale object that represents the locale of the user logged in to .

Syntax

YFCLocale getLocale()

Input parameters

None.

Output parameters

The YFCLocale object that represents the locale of the logged in user.

JSP usage

This example shows how the getLocale function can be used in conjunction with the getDoubleFromLocalizedString function.

<%
if ((getDoubleFromLocalizedString(getLocale(), 
sTotalInternalUnassignedDemand)) > 0) {%> 
 <table  border="1" style="border-color:Black" cellspacing="2" cellpadding="2"
  bgcolor="<yfc:getXMLValue
  binding="xml:/InventoryInformation/Item/InventoryTotals/Demands/
@TotalInternalUnassignedDemand" />">
   <tr> 
     <td style="height:10px;width:15px"></td>
   </tr>
 </table>				
<%}%>