Home > Contents > Index >
currency:create
Creates a currency object for a specific currency ISO code.
Syntax
<currency
:create name="curname
" [isocurrency
="isosymbol
"] [separator
="dot|comma|default
"]/>Parameters
name
(required)- Input and output parameter. As input, name of the currency object to create on output.
isocurrency
(optional)- Input parameter. The 3-character ISO currency symbol. If not specified, the default currency symbol (
USD
) is used.
separator
(optional)- Input parameter. Specifies the currency separator character. It can have one of the following values:
dot
comma
default
Example
<!-- Get the item price, which is stored as (price * quantity); and where cartlist_price and cartlist_quantity are the two java variables that have the Values retrieved appropriately--> <% ics.SetVar("calcout",new String(cartlist_price/cartlist_quantity)); %><!-- Convert the above item price to currency. --> <currency:create name="curval"/> <currency:getcurrency name="curval" value="calcout"
varname="curout"/>
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.