aspose file tools*
The moose likes Websphere and the fly likes Websphere6 and JSTL1.1 error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Websphere6 and JSTL1.1 error" Watch "Websphere6 and JSTL1.1 error" New topic
Author

Websphere6 and JSTL1.1 error

Alex Sun
Ranch Hand

Joined: Mar 23, 2007
Posts: 42
<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.


SCJP 5
SCWCD 1.4
SCDJWS 1.4
SCBCD 5
SCEA 5 (Part 1 cleared)
IBM Certified Solution Developer - WPS 6.1
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Websphere6 and JSTL1.1 error