[英]javax.el.ELException: Failed to parse the expression [${ofn:storeLookup(${bundleDetailsMap['bundleStoreUnit']})}]
我正在嘗試使用El Expression參數調用JSTL函數,但是它拋出運行時異常,
enter code here<c:forEach var="bundleDetailsMap" items="${orderSummaryInfo.pickupBundleDetails}">
{
name: "${bundleDetailsMap['name']}",
price: "${bundleDetailsMap['price']}",
<c:set var="store" value="${ofn:storeLookup(${bundleDetailsMap['bundleStoreUnit']})}" />
storeName: "${store.storeName}",
storeAddress: "${store.streetAddr}",
storeCity: "${store.city}",
storeState: "${store.state}",
storeZip: "${store.zipForDisplay}",
storeUnit: "${store.unit}",
monFriHours: "${store.monHours}",
satHours: "${store.satHours}",
sunHours: "${store.sunHours}",
items: [
<c:forEach var="bundleItem" items="${bundleDetailsMap['items']}">
{
src: "${bundleItem.imageDescription}",
bundleName: "${bundleItem.itemName}",
qty: "${bundleItem.quantity}",
ashleyStoreUnit : "${bundleItem.ashleyStoreUnit}",
},
</c:forEach>
],
},
</c:forEach>
在這引發解析錯誤
我認為問題出在${ofn:storeLookup(${bundleDetailsMap['bundleStoreUnit']})}
。
我認為您不允許在EL中打這么復雜的電話。
您應該嘗試在控制器中設置EL變量,或者嘗試使用scriptlet完成此操作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.