【问题标题】:Does Websphere Commerce 7 support JSTL 1.1 XML in widgets?Websphere Commerce 7 是否支持小部件中的 JSTL 1.1 XML?
【发布时间】:2014-11-19 14:37:01
【问题描述】:

我制作了一个新的空白小部件并将其添加到页面中。 所有的 JSTL 标记在它的 JSP 中都能正常工作,但是尝试做例子

<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
<x:set var="test"/>

导致 UnresolvableException

[19/11/14 17:16:45:617 FET] 0000001f LoggingHelper E /GenericJSPPageError.jsp - $requestScope:EC_device
                             org.apache.taglibs.standard.tag.common.xml.UnresolvableException: $requestScope:EC_device
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)
...

我也不知道 EC_device 是什么以及它来自哪里。 JSTL XML 标记在项目的其他任何地方都没有使用,所以我无法验证它们是否有效,因此这就是我要问的。

【问题讨论】:

    标签: xml jsp jstl websphere-8 websphere-commerce


    【解决方案1】:

    JSTL 标签仍然有效,它会在代码的其他地方出现错误......也许当小部件使用现有资源时,新的目录结构?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-12-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-13
      相关资源
      最近更新 更多