This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Websphere6 and JSTL1.1 error

 
Alex Sun
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<c:import var="myxml" url="file.xml"/>
after I import the xml string myxml, when I try parse xml in jsp page
<x arse var="parsedXML" xml="${myxml}"/>

I got an exception as following

org.apache.taglibs.standard.tag.common.xml.UnresolvableException: $prefix:javax.servlet.forward.query_string
at org.apache.taglibs.standard.tag.common.xml.XPathUtil$JstlVariableContext.notNull(Unknown Source)
at org.apache.taglibs.standard.tag.common.xml.XPathUtil$JstlVariableContext.getVariableValue(Unknown Source)
at org.apache.taglibs.standard.tag.common.xml.XPathUtil$JstlVariableContext.getVariableOrParam(Unknown Source)
at org.apache.taglibs.standard.tag.common.xml.XPathUtil.fillVarStack(Unknown Source)
at org.apache.taglibs.standard.tag.common.xml.XPathUtil.valueOf(Unknown Source)
at org.apache.taglibs.standard.tag.common.xml.ExprSupport.doStartTag(Unknown Source)
at com.ibm._jsp._search._jspx_meth_x_out_0(_search.java:580)
at com.ibm._jsp._workers._jspx_meth_c_set_3(_search.java:606)

anybody has an idea about that?

The taglib has been defined in web.xml and jsp page like following
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/xml_rt" prefix="x" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/fmt-1_0.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jstl/core_rt</taglib-uri>
<taglib-location>/WEB-INF/c-1_0-rt.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
<taglib-location>/WEB-INF/sql-1_0.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jstl/xml_rt</taglib-uri>
<taglib-location>/WEB-INF/x-1_0-rt.tld</taglib-location>
</taglib>
</jsp-config>


Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic