Forums Register Login

org.jaxen. UnresolvableException: $dom

+Pie Number of slices to send: Send
Hi,
I get the following exception, and I am not able to figure out what's the possible reason.
javax.servlet.jsp.JspTagException: org.jaxen.UnresolvableException: $dom
Here is what I am doing... The backend creates a Document object and just returns a reference to Web Component. A JSP page retrieves the info from this Document object using JSTL (XPath). I store the reference to Document object returned by the backend in a variable 'dom', but I get the above exception. The following is the JSP code, I would really appreciate, if someone could shed some light on this, coz I am kinda lost.
<html>
<head>
<title>Design Prototype Demo</title>
</head>
<body>
<%@ page language="java" import="org.w3c.dom.*,com.citi.soft.util.XMLUtil"%>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld" %>
<%@ taglib prefix="x" uri="/WEB-INF/x.tld" %>
<%!
Document dom = null;
%>
<%
dom = (Document) request.getAttribute("DOM");
System.out.println("dom: " + dom);
System.out.println("XML String: " + XMLUtil.getXML(dom));
%>
<x:forEach var="trade" select="$dom//com.citi.soft/Output/Trades/Trade">
<%
Date mySDate = new Date();
%>
start xpath: <%= mySDate %>
<x:out select="$trade/quantity/text()"/>
<x:out select="$trade/entryDate/text()"/>
<x:out select="$trade/SalTrdeNumber/text()"/>
<x:out select="$trade/buySellIndicator/text()"/>
<x:out select="$trade/grossComm/text()"/>
<x:out select="$trade/SMID/text()"/>
<x:out select="$trade/account/text()"/>
<x:out select="$trade/tradeTypeClass/text()"/>
<x:out select="$trade/MgtGrp/text()"/>
<x:out select="$trade/ExecType/text()"/>
<x:out select="$trade/marketBlotter/text()"/>
<x:out select="$trade/IsrIncSrcCntryC/text()"/>
<x:out select="$trade/SecType/text()"/>
<x:out select="$trade/journalDate/text()"/>
<x:out select="$trade/tradeSeqNo/text()"/>
<x:out select="$trade/moveDate/text()"/>
<x:out select="$trade/mktId/text()"/>
<x:out select="$trade/tradeSource/text()"/>
<x:out select="$trade/EVChrgAUsD/text()"/>
<x:out select="$trade/retailFlag/text()"/>
<x:out select="$trade/journalNum/text()"/>
<x:out select="$trade/gpType/text()"/>
<x:out select="$trade/comment1/text()"/>
<x:out select="$trade/tradeOrigin/text()"/>
<x:out select="$trade/gpNum/text()"/>
<x:out select="$trade/branchFc/text()"/>
<x:out select="$trade/netAmount/text()"/>
<x:out select="$trade/settleDt/text()"/>
<x:out select="$trade/EVA/text()"/>
<x:out select="$trade/tradeStatus/text()"/>
<x:out select="$trade/EVPrinAUsD/text()"/>
<x:out select="$trade/mgrCode/text()"/>
<x:out select="$trade/ForeignRate/text()"/>
<x:out select="$trade/userAuditTrail/text()"/>
<x:out select="$trade/tradeDate/text()"/>
<x:out select="$trade/acctBranch/text()"/>
<x:out select="$trade/RelID/text()"/>
<x:out select="$trade/tradeArea/text()"/>
<x:out select="$trade/SalesAnal/text()"/>
<x:out select="$trade/originalFc/text()"/>
<x:out select="$trade/ProcCode/text()"/>
<x:out select="$trade/hardCodeRatioDate/text()"/>
<x:out select="$trade/softdollarRatio/text()"/>
<x:out select="$trade/salesCredit/text()"/>
<x:out select="$trade/ForeignComm/text()"/>
<x:out select="$trade/tradeCrtDate/text()"/>
<x:out select="$trade/cancelInd/text()"/>
<x:out select="$trade/commission/text()"/>
<x:out select="$trade/cusipExt/text()"/>
<x:out select="$trade/cusip/text()"/>
<x:out select="$trade/productArea/text()"/>
<x:out select="$trade/symbol/text()"/>
<x:out select="$trade/statusInd/text()"/>
<x:out select="$trade/currency/text()"/>
<x:out select="$trade/price/text()"/>
</x:forEach>
</body>
</html>
Forget this weirdo. You guys wanna see something really neat? I just have to take off my shoe .... (hint: it's a tiny ad)
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1260 times.
Similar Threads
JSTL error
JSTL-XML problem
How to save values in a database in JSTL?
How do I retrieve ancestor-or-self nodelist in a JSP page using the JSP XML taglibs?
How to store extracted xml values in a database?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:29:59.