It looks like you're trying to use a Struts 1.x taglib with Struts 2.x,
which is not going to work. I'd suggest you use Struts 2 tags or JSTL. For
example:

<c:if name="${fileName.fileName == 'apfile.txt'}">do something</c:if>

On Thu, Aug 20, 2009 at 4:35 AM, lounnaci <m.lounn...@hb-technologies.com.dz
> wrote:

>
> Hello
>
> When I try to add a <Logic> tag to jsp page i have the following exception:
>
> javax.servlet.ServletException: org.apache.jasper.JasperException:
> /WEB-INF/pages/orderDetailList.jsp(2,58) PWC6112: Failed to load or
> instantiate TagExtraInfo class: org.apache.struts.taglib.logic.IterateTei
>        at
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
>        at
>
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
>        at
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>     ......................
>
> The file
> This is a part of my jsp code that causes the problem. My goal is hiding a
> table column depending on some condition. Is my code right???
>
> <%@ include file="/common/taglibs.jsp"%>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> <head>
>    <title><fmt:message key="orderDetailList.title"/></title>
>    <content tag="heading"><fmt:message
> key="orderDetailList.heading"/></content>
>    <meta name="menu" content="ODSMenu"/>
> </head>
>
> <c:set var="buttons">
>    <input type="button" style="margin-right: 5px"
>        onclick="location.href='<c:url value="/editOrderDetail.html"/>'"
>        value="<fmt:message key="button.add"/>"/>
>
>    <input type="button" onclick="location.href='<c:url
> value="/mainMenu.html"/>'"
>        value="<fmt:message key="button.done"/>"/>
> </c:set>
> <c:out value="${buttons}" escapeXml="false" />
> <s:set name="orderDetails" value="orderDetails" scope="request"/>
>    <display:table name="orderDetails" class="table"
>        requestURIcontext="false" defaultsort="1"
>        id="orderDetailList" export="true" pagesize="25">
>
>    <logic:equal name="fileName" property="fileName" value="apfile.txt">
>    <display:column property="fileName" sortable="true"
> titleKey="orderDetail.fileName"          paramId="fileName"
>      href="CustomerFiles/${fileName}"/>
>    </logic:equal>
>
> --
> View this message in context:
> http://www.nabble.com/Struts-%3CLogic%3E-tag-exception-tp25058110s2369p25058110.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>

Reply via email to