I asked a question here yesterday and it was kindly answered. However, I have taken the sample code and attempted to print out the value of the current node, i.e. using getNodeValue.
Whenever I run the jsp it returns a "org.apache.jasper.JasperException: An exception occurred processing JSP page" error on "printOut = n.getNodeValue().trim();"
Below is my edited code from dogbane
String = "tagToFind";
String printOut = "";
Node n = aNode.getParentNode();
while (n != null && !n.getNodeName().equals(tagToFind)) {
n = n.getParentNode();
printOut = n.getNodeValue();
}
out.println(printOut);