• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Websphere6 and JSTL1.1 error

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic