Jenny <> wrote:
>My application uses Struts 1.2.9. And I try to use the
>"logic:notEmpty" tag in my JSP file. My codes are like the following:
>
>
><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
>
> <logic:notEmpty name="approvalLetterForm"
>property="participantAddress2">
> <bean:write name="approvalLetterForm"
>property="participantAddress2" /><br>
> </logic:notEmpty>
>
>And I got the following error. Why?
>
>
>HTTP Status 500 -
>
>--------------------------------------------------------------------------------
>exception:
>
>org.apache.jasper.JasperException: /jsp/app/EditApprovalLetter.jsp
>(198,3) No tag "notEmpty" defined in tag library imported with prefix
>"logic"
Look in web.xml and see where you've got /WEB-INF/struts-logic.tld
pointing to. Maybe you're aiming it at the wrong file.
Better yet, write your taglib statement like this:
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
prefix="logic" %>
and delete the taglib bits in web.xml.
--
Tim Slattery
http://members.cox.net/slatteryt