Jstl function tags question

I'm trying to output the size of a Vector in jstl 1.1 like
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ include  file="header.jsp"%>
<!-- ### -->
<c:out value="${fn:length(aliasesInfo.aliases)}" />but when I run my app I get tomcat errors
org.apache.jasper.JasperException: <h3>Validation error messages from TagLibraryValidator for c in /jsp/aliases/confirmAliases.jsp</h3><p>87: tag = 'out' / attribute = 'value': An error occurred while parsing custom action attribute "value" with value "${fn:length(aliasesInfo.aliases)}": org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are not supported.</p>Am I declaring the taglib correctly for the fn prefix?

Hi ,
i am uday
i am very new to JSLT, i have no idea about it..
i have been alloted a poject on JSLT ..the details of which will be getting on monday ...
can you please help me in this regard ..where can i get materail or good information regarding JSLT..how it works ..
Thanx in advance
Uday

Similar Messages

  • Unable to use JSTL fn tags in WL 8.1

    hi,
              I am trying to use JSTL functions tags in my struts app, and I am seeing this error...
              Error in using tag library uri='http://java.sun.com/jstl/functions' prefix='fn': Tag Library Descriptor contains no Tag descriptions
              probably occurred due to an error in /newgui/customerservice/AdditionalLines.jsp line 4:
              <%@ taglib uri = "http://java.sun.com/jstl/functions" prefix = "fn"%>
              I have the entry in web.xml as below...
              <taglib>
              <taglib-uri>http://java.sun.com/jstl/functions</taglib-uri>
              <taglib-location>/WEB-INF/tlds/fn.tld</taglib-location>
              </taglib>
              I also have the fn.tld in the tlds folder along with other core and sql tlds. core tlds are working (they are 1.0.4 version), but I am having trouble using fn tags.
              btw, I am running the struts web-app on WL 8.1 Sp4 (or sp3) not sure...
              Any help is greatly appreciated...
              thanks,
              Kiran :)

    Update: I just looked up the WL version and it's 8.1 sp3
              So, I guess, JSTL 1.1 (which includes jstl fn tags) is not supported by WL.... Someone correct me if I am wrong.
              Thanks,
              pal :)

  • JSTL 's function tag

    I have tried to use function tag in my jsp page. However, I kept receiving this error message:
    <h3>Validation error messages from TagLibraryValidator for c</h3><p>35: tag = 'out' / attribute = 'value': An error occurred while parsing custom action attribute "value" with value "${fn:toUpperCase(who)}": org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are not supported.</p>
    It seems that I got some configuration problem with function tag, but can't find out what it exactly is. The core, xml, sql, fmt tags all could run properly, I really can't understand what is wrong with function. I am using jstl 1.1 and located in the lib folder. I addressed
    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
    on the top of the page.
    Please help me out. Many thanks

    It dosen't work with out c:out. I found that I got
    different error messages if I address
    uri= "http://java.sun.com/jsp/jstl/functions" and
    "http://java.sun.com/jstl/functions" (no /jsp)
    Use the one with /jsp if you are using JSTL 1.1
    Use the ont without /jsp if you are using JSTL1.0
    >
    the second one shows
    The absolute uri: http://java.sun.com/jstl/functions
    cannot be resolved in either web.xml or the jar files
    deployed with this applicationProbably means you have JSTL 1.1
    I have already put the fn.tld file in the WEB-INF
    folder and mapped it in the web.xml. Take it out! All you need to do for JSTL 1.1 is put the standard.jar and jstl.jar into the WEB-INF/libs directory. No web.xml changes, no .tld placement, all that is handled in the JARS you put in the /lib directory.
    The IDE I am
    using is netBean 3.6. Anything else I missed? Please
    help me out. Thanks

  • Trouble with JSTL functions uri

    I have JSTL 1.1 installed, am using J2EE 1.3 on Websphere 5.0 and am referencing 2.3 DTD in my web.xml. I have the jstl.jar, standard.jar, jdbc2_0-stdext.jar, xalan.jar and xercesImpl.jar in WEB-INF/lib
    I can successfully use the core JSTL functions with
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> but have not been able to get the functions URI to work.
    I have tried the two listed below
    <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
    <%@ taglib uri="http://java.sun.com/jstl/functions" prefix="fn" %>
    but get the error:
    [Servlet Error]-[File "http://java.sun.com/jsp/jstl/functions" not found]: org.apache.jasper.JasperException: File "http://java.sun.com/jsp/jstl/functions" not found
    Can someone please tell me what I am doing wrong or if I am trying to use something that I shouldn't with my setup. I have only started using JSTL this week and have a lot left to learn.
    Thanks!

    I want to use JSTL 1.1 tags if possible. Not possible given your environment.
    Its on the header of the taglibs site:
    Standard-1.1 (JSTL 1.1) requires a JSP container that supports the Java Servlet 2.4 and JavaServer Pages 2.0 specifications. (http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html)
    Websphere 5.0 supports only Servlet 2.3 and JSP 1.2. Thus you can only use JSTL1.0 with it. JSTL 1.0 does not define these functions.
    Sorry, but thats the way things are.
    Cheers,
    evnafets

  • CF 10 CFML function, tag definitions and help files in DW cs6

    I'm unable to view the new CF 10 CFML function, tag definitions and help files in DW CS6 after using the ColdFusion10_Tags_for_DW.mxp update file. I see that the 'CF10 Extensions' are enabled in Adobe Extension Manager CS6.
    When I pull up the Reference tab Book: 'Adobe CF Function Reference', I don't see canonicalize in the drop down of 'CFFunctions'.
    Is there an issue with updating the extensions within DW CS6?
    Any help would be great.
    Garth

    I am afraid http://forums.adobe.com/community/coldfusion is more suitable for this question.

  • CRM FUNCTIONAL interview questions and answers

    Dear Friends,
    Good Afternoon..!!!
    can you tell me the CRM FUNCTIONAL interview questions with answers if avialable.....
    Regards,
    Dhananjaya

    Dear friends,
    Can any body forward me interview questions and answers
    can any body tell me where can i get crm functional video tuter

  • JSTL sql tags with jndi datasource

              Im trying to use JSTL sql tags but get "no suitable driver" when trying to connect
              to a jndi datasource. the jakarta dbtags works fine but jstl does not
              

              I figured it out but I'll leave it up to BEA to tell everyone how to doit.
              "Fred Forester" <[email protected]> wrote:
              >
              >
              >Im trying to use JSTL sql tags but get "no suitable driver" when trying
              >to connect
              >to a jndi datasource. the jakarta dbtags works fine but jstl does not
              

  • JSTL functions in JDev 10g (9.0.5 preview)

    Hi everybody,
    I don't see the JSTL functions taglib available in the component palette for a JSP page. Is it something that will be present in the production version ?
    It seems that this taglib is also not available within OC4J 10.0.3 preview. So a page containing such a line will not compile:
    <%@ taglib uri="http://java.sun.com/jstl/functions" prefix="fn" %>Any comments ?

    Hi Shay,
    The new how-to covers JSTL SQL. What I'm interested in is JSTL functions.
    I want to be able to do something like:
    <%@ taglib uri="http://java.sun.com/jstl/functions" prefix="fn" %>
    <c:if test="${fn:length(param.username) > 0}" >
    </c:if>But maybe it's something relative to JSP 2.0 and not only to JSTL.

  • Travel Management functions interview question and answers

    Hi Guys,
    I wanted to know Travel Management functions interview question and answers , it is most urgent for me.
    Your detail response will be highly appreciated.
    Thanks – Sam.

    Check this site
    http://help.sap.com/saphelp_470/helpdata/en/73/6bf037f1d6b302e10000009b38f889/frameset.htm
    Regards,
    Ruben

  • Oracle Asset (Functional) Practice Questions for Interviews and Exam

    https://www.createspace.com/3495382
    http://www.amazon.com/Functional-Questions-Interviews-Certification-Examination/dp/1456311581/ref=sr_1_4?ie=UTF8&s=books&qid=1289178586&sr=8-4
    List Price: $29.99
    Add to Cart
    Oracle Asset (Functional) Practice Questions for Interviews and Certification Examination (Release 11i and 12)
    Functional Consultant
    Authored by Erp Gold
    This book contains 150 Oracle Asset Practice Questions for functional consultants. Very useful for interviews and certification examinations.
    Publication Date:
    Oct 26 2010
    ISBN/EAN13:
    1456311581 / 9781456311582
    Page Count:
    94
    Binding Type:
    US Trade Paper
    Trim Size:
    6" x 9"
    Language:
    English
    Color:
    Black and White
    Related Categories:
    Computers / General

    Reported as spam!

  • Oracle Asset (Functional) Practice Questions for Interviews and Certificati

    https://www.createspace.com/3495382
    List Price: $29.99
    Add to Cart
    Oracle Asset (Functional) Practice Questions for Interviews and Certification Examination (Release 11i and 12)
    Functional Consultant
    Authored by Erp Gold
    This book contains 150 Oracle Asset Practice Questions for functional consultants. Very useful for interviews and certification examinations.
    Publication Date:
    Oct 26 2010
    ISBN/EAN13:
    1456311581 / 9781456311582
    Page Count:
    94
    Binding Type:
    US Trade Paper
    Trim Size:
    6" x 9"
    Language:
    English
    Color:
    Black and White
    Related Categories:
    Computers / General

    Reported as spam!

  • JSTL Function Causing JDev Designer to Hide Field

    I added a JSTL function to an OutputText field in an ADF Web application. The function itself works at run-time; however, in the JDev Designer, the Designer does not display the field.
    What I did was this:
    1. Added the namespace prefix to the page fragment:
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:fn="http://java.sun.com/jsp/jstl/functions"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    2. Added the function to an af:outputText. To keep this post simple, in the below example i just used 'MMM' as the fn:toLowerCase() param value:
    <af:panelLabelAndMessage label="#{viewcontrollerBundle.LOGGER_PROTOTYPE_2}" id="plam4"
    rendered="#{bindings.Type1.inputValue !=2 and bindings.MessageLevelId.inputValue != 0}">
    <af:outputText value="#{fn:toLowerCase('MMM')}" id="ot4"
    inlineStyle="font-family:'Courier New', Courier, monospace;"/>
    </af:panelLabelAndMessage>
    At runtime 'MMM' is correctly displayed as 'mmm'. However, the field is not visible in the JDev Designer - which will make this confusing to maintain. Is there something I am doing wrong, or am i missing a step?
    Versions: JDeveloper 11.1.1.6, Linux. JSTL functions library is for v. 1.2.
    Thanks for your help.

    There is no JDev version 11.1.1.6.0 (at least officially).
    Anyway, can you check what you see if you add some static text in front of the EL.
    I guess jdev tries to calculate the value, fails and you end up getting nothing (or in case of an outputText with no text which means nothing).
    Timo

  • Does JSTL functions work in custom Spaces Page Style ?

    I am trying to create a custom page style and have to write some logic where I have to use fn:containsIgnoreCase. When I create pages that use this Page Style, it throws a white page and doesnt work.
    I have also added the below in the root
    xmlns:fn="http://java.sun.com/jsp/jstl/functions"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    When I remove the fn:containsIgnorecase, It works fine.
    My version of Webcenter Spaces is 11.1.1.6
    Edited by: Rohith puchalapalli on Apr 9, 2013 3:39 PM

    Hi.
    You can use JSTL perfectly in ADF. I don't share the opinion of Oracle not recommends... there are a lot of official pages saying how to use JSTL in ADF.
    <af:outputText value="#{fn:length(yourList)}"/>Yannick is saying that you can't mix lifecycles. Take care using $ or # operators :).
    For example if you are using a JSTL c:forEach. Next code is going to crash:
    <c:forEach var="..." value="${list}">
       <af:outputText value="#{list.item}"/>
    </c:forEach>Because # is evaluated in prepareModel phase and $ while rendering.
    I hope this help you.

  • No JSTL FUNCTION support

    Does Jdev support JSTL FUNCTION taglib?
    such sd EL ${fn:substringAfter("...") }
    I did not find it on the component palette.
    thanks

    Refer to
    http://www.oracle.com/technology/products/jdev/tips/schalk/jstl_sql/jstl_sql.html

  • Tray Function Tags

    Hi,
    Is it possible to create custom Tray Function Tags? I would like to add custom functions to the Iview Tray and turn those functions on or off in the Iview properties.
    Thanks,
    Raymond

    I have read something about creating a custom tray with 'containerWithTrayDesign'. How I see it this creates a custom tray but I still have to use the Tray Function Tags from the TagLibLayout.
    I this correct?
    YES, this is correct.
    Why am I not allowed to develop my own custom TagLibLayout or is it possible the modify/enhance the standard one?
    You can have your own tags to show some options in the tray, but this again needs, modification of IView, as the option to set them visible/invisible should be set there.
    Regards,
    Praveen Gudapati

Maybe you are looking for

  • "cellular network is no longer available" since upgrade to OS 3.2.2

    Since I upgrade to OS 3.2.2 I cannot connect to cellular network. Turned on cellular data in settings, still shows "No Service". Tried reset network settings, tried reset iPad, tried restore. I can check my account and verify I have data plan. Any su

  • Runtime Error DBIF_RSQL_INVALID_RSQL on dataload to PSA

    Hi, Apologies for the long problem statement. We need to extract data from a non- SAP SQL system to our SAP Netweaver 7.01 (EhP1 SP5) BI system. We have established a UD Connection and connected to tables in the SQL system. After a few dataloads and

  • How do I go back to previous set up?

    I DO NOT LIKE THE NEW SET UP, WANT TO GO BACK TO OLD ONE, HOW DO I DO THIS?

  • How to find which type of installed (CS3)

    I have question. because our office have 25 computers was installed difference volume media. (6x desgin standard, 4x design prem, 4x web standard, 11x web prem) my boss ask me to verify that computer(s) installed Adobe Creative Suite 3 (which type of

  • Help! I've only had it 7 weeks and my Zen Neeon has already FRO

    I was listening to my 6GB Neeon on the way to work today and it just started making a buzzing sound and is now stuck halfway through a song and I can't turn it on or off and plugging it in to the computer doesn't do anything either - the computer doe