Passing null values in java method
Divesh Dutta <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Hello all,
How to pass null value to a java method in ftl? Actually I am
calling a java method in ftl and passed null value for one of the
parameter. For eg:
<#assign shippingEst =
Static["org.ofbiz.order.shoppingcart.shipping.ShippingEvents"].getShipGroupEstimate(dispatcher,
delegator, "SALES_ORDER",
shippingMethodTypeId, carrierPartyId,
carrierRoleTypeId, shippingCmId, productStoreId,
*null*,shippableItemInfo,shippableWeight,
shippableQuantity, shippableTotal, partyId, productStoreShipMethId)>
But in Java :
This method is not treating null as a null value . Here is the schema of
this method:
public static Map getShipGroupEstimate(LocalDispatcher dispatcher,
GenericDelegator delegator, String orderTypeId,
String shipmentMethodTypeId, String carrierPartyId, String
carrierRoleTypeId, String shippingContactMechId,
String productStoreId,* String supplierPartyId*, List
itemInfo, BigDecimal shippableWeight, BigDecimal shippableQuantity,
BigDecimal shippableTotal, String partyId, String
productStoreShipMethId)
Please help.
Thanks in advance
Divesh
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user