Hello. We are on WEM/DPM 8.5 and Portal 8.5.
I am trying to parse the xml returned by a Navigation content component on a display view using xml JSTL tags. An exception is thrown when the <x:set> tag is used:
[8/4/15 9:42:37:684 CDT] 00000026 ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet /views/shared/shrBreadcrumbView.jsp in application sites. Exception created : com.ibm.websphere.servlet.error.ServletErrorReport: org.apache.taglibs.standard.tag.common.xml.UnresolvableException: $requestScope:com.vignette.ext.templating.portlet.region.types
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:699)
at com.ibm._jsp._shrBreadcrumbView._jspService(_shrBreadcrumbView.java:120)
...
Caused by: org.apache.taglibs.standard.tag.common.xml.UnresolvableException: $requestScope:com.vignette.ext.templating.portlet.region.types
at org.apache.taglibs.standard.tag.common.xml.XPathUtil$JstlVariableContext.notNull(XPathUtil.java:377)
at org.apache.taglibs.standard.tag.common.xml.XPathUtil$JstlVariableContext.getVariableValue(XPathUtil.java:322)
at org.apache.taglibs.standard.tag.common.xml.XPathUtil$JstlVariableContext.getVariableOrParam(XPathUtil.java:241)
at org.apache.taglibs.standard.tag.common.xml.XPathUtil.fillVarStack(XPathUtil.java:792)
at org.apache.taglibs.standard.tag.common.xml.XPathUtil.selectNodes(XPathUtil.java:536)
at org.apache.taglibs.standard.tag.common.xml.SetTag.doStartTag(SetTag.java:69)
at com.ibm._jsp._shrBreadcrumbView._jspx_meth_x_set_0(_shrBreadcrumbView.java:214)
at com.ibm._jsp._shrBreadcrumbView._jspService(_shrBreadcrumbView.java:109)
... 221 more
It appears the <x:set> tag iterates through all attributes in request scope and throws an exception if any are null. In this case, com.vignette.ext.templating.portlet.region.types is null. There are a few other null DPM attributes in request scope also.
Has anyone successfully used the JSTL xml tags to parse xml in a display view? Has anyone run into this issue? Any suggestions?
Thanks much.