• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

org.jaxen. UnresolvableException: $dom

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic