Results 1 to 2 of 2

Thread: Using a JSTL

  1. #1
    sehudson's Avatar
    sehudson is offline Senior Member
    Join Date
    Mar 2010
    Rep Power

    Default Using a JSTL

    In one of my JSP pages I am trying to use the fn tag library:

    Java Code:
    <%@taglib uri="/WEB-INF/fn.tld" prefix="fn"%>
    When the jsp is rendered, I am getting a

    Java Code:
    Error in tag library uri='/WEB-INF/fn.tld' prefix='fn': Tag Library Descriptor contains no Tag descriptions error.

    Could my webapp server (WebLogi 8.1) be the problem? I need the fn: 'contains' functionality in the tag library, which is the only reason I am using it. Is there any other way to do a contains inside of my <c:if test${StringA.contains(StringB)}"> type of thing?

  2. #2
    bhanusri is offline Member
    Join Date
    Jun 2011
    Rep Power


    in the uri atrribute you need to give absolute address of that tag lib like <%@ taglib uri="" prefix="c"%> and fn.tld is the part of jstl core library so you need not to mention separately in the jsp page. In order to work with Jstl you need to configure the jstl in web.xml file

Similar Threads

  1. regarding jstl and jsp
    By bhanusri in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 06-09-2011, 10:26 AM
  2. JSTL and JSP
    By mohinicharankar in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-23-2011, 08:26 AM
  3. Jstl
    By prakashkadakol in forum New To Java
    Replies: 10
    Last Post: 01-13-2010, 08:17 PM
  4. Why are we using JSTL in jsp?
    By makpandian in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 06-30-2009, 11:15 PM
  5. jstl tag <if>
    By subha in forum Advanced Java
    Replies: 1
    Last Post: 04-02-2009, 10:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts