struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: JSTL in Struts
Date Fri, 10 Jan 2003 16:39:59 GMT


On Fri, 10 Jan 2003, Mouratidis, Georg wrote:

> Date: Fri, 10 Jan 2003 12:29:50 +0100
> From: "Mouratidis, Georg" <GMouratidis@heiler.com>
> Reply-To: Struts Users Mailing List <struts-user@jakarta.apache.org>
> To: Struts Users Mailing List <struts-user@jakarta.apache.org>
> Subject: JSTL in Struts
>
> Hi,
>
> im using JSTL with Struts. And some tags are working and some do not.
> i have no idea.
>
> <c:out .... /> works
> <c:set works too.
>
> but if i use
> <c:import url"..."
>
> or
>
> <x:parse xml="${textDocument}" var="xml"/>
> <x:out select="$xml/orders/order[1]"/>
>
> the following error appears:
>
> org.apache.jasper.JasperException: /web/views/shared/Organization/OrganizationData.jsp(241,0)
Unable to load class import
>
> or
>
> org.apache.jasper.JasperException: /web/views/shared/Organization/OrganizationData.jsp(241,0)
Unable to load class parse
> 	at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
> 	at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:417)
> 	at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:219)
>
> how can some class in <c: work and other do not?
>
> can somebody help PLEASE
> thx
>

I'd bet you forgot to add the <%@ taglib %> declaration for the XML
library at the top of your page.  JSTL is made up of several tag
libraries, not just one.

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

> george

Craig


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message