Results 1 to 2 of 2

Thread: Using a JSTL

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

    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
    Posts
    6
    Rep Power
    0

    Default

    in the uri atrribute you need to give absolute address of that tag lib like <%@ taglib uri="http://java.sun.com/jsp/jstl/core" 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, 09:26 AM
  2. JSTL and JSP
    By mohinicharankar in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-23-2011, 07:26 AM
  3. Jstl
    By prakashkadakol in forum New To Java
    Replies: 10
    Last Post: 01-13-2010, 07: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, 10:15 PM
  5. jstl tag <if>
    By subha in forum Advanced Java
    Replies: 1
    Last Post: 04-02-2009, 09: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
  •