JSTL core tags not working inside of a jsp:include?

I have declared the core JSTL tag and have a jsp include tag that calls another jsp page. I want to be able to execute a c:if statement inside the included file, but the c:if statement does not execute and is read back to me within the html. This is a frustrating problem because the EL returns a true or false based on the param I sent, but the c:if does not run.
Is there a way to fix this, or is this something that I can't change?
Note: I have found a workaround by using the include directive. I would rather use the jsp:include action, but unless this problem gets solved I will be sticking with the directive.
Thanks
Message was edited by:
nberveiler

You need to have the Core taglib declared on the page that you are including with jsp:include.
There is a subtle difference between the include directive <%@ include %> and <jsp:include>
The latter happens at runtime, and includes the result of running the included page.
Therefore any page included with <jsp:include> needs to be completely standalone, and declare all of its own taglibraries that it uses. It can't inherit them from the "including" jsp.
The include directive works, because it pastes in the contents of the included file at compile time - effectively making one big JSP file.
Cheers,
evnafets

Similar Messages

  • In Web.xml  welcome file tag not works

    Hi All ,
    I am developing simple web application using spring framework
    when i am try to add welcome file tag in web.xml with respective welcome page path but it not works.
    but when use jsp page without to having any property it works.
    what the problem with me
    Thanks

    Hi Frank
    Thank you for your reply.
    This is how I registered the session filter in web.xml
    <filter>
    <filter-name>SessionFilter</filter-name>
    <filter-class>com.avery.view.filter.SessionFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>SessionFilter</filter-name>
    <url-pattern>/faces/*.jsf</url-pattern>
    </filter-mapping>
    I'll try to use phaselisenter as you suggested.
    Also, one more thing please, in the session filter, I have something like this.
    public void doFilter(ServletRequest request, ServletResponse response,
    FilterChain chain) throws IOException, ServletException {
    System.out.println("JF--- Calling the Filter");
    if (request instanceof HttpServletRequest) {
    HttpServletRequest httpRequest = (HttpServletRequest)request;
    HttpServletResponse httpResponse = (HttpServletResponse)response;
    HttpSession session = httpRequest.getSession();
    String url = httpRequest.getPathTranslated();
    String path = httpRequest.getContextPath() + httpRequest.getServletPath();
    if (httpRequest.getRequestURI().equals(path+"/Login")) {
    System.out.println(" the request path is" + httpRequest.getRequestURI().toString());
    session.setAttribute("WELCOME", Boolean.TRUE);
    chain.doFilter(request, response);
    else if (session.getAttribute("WELCOME") == null){
    httpResponse.sendRedirect(path+"/Login");
    else {
    chain.doFilter(request, response);
    else {
    chain.doFilter(request, response);
    Do you think it looks right ?
    thanks
    Edited by: Lang on Apr 13, 2012 1:41 AM

  • I updated my mac's OS to Yosemite and now my eye drop tool will NOT work inside premiere pro. Can anyone help me fix this issue?

    The eyedropper tool for selecting colors to key out or to fill text will not work inside premiere pro, this error started when I updated my mac os to yosemite.

    Hi Transportation,
    Does the error occur in OS X 10.9? If not, why not remain at OS X 10.9? Is it necessary to run OS X 10.10?
    The general rule of thumb is that when you are running software that is no longer tested or supported on a new operating system, you have to prepare for anomalies like this. You may want to install a separate bootable hard drive with OS X 10.9 on it so you can continue running that software more reliably.
    Hope that helps,
    Kevin

  • ScriptLink tag not working for application page sharepoint 2010

    <ScriptLink> tag not working for application page sharepoint 2010 for including javascript in application page, it appends either 1033 or _layout to path specified for javascript.But javascripts are located in custom document library on site and not
    in _layouts folder.
    Please help and explain in details as I tried lot on this.

    Hi,
    Use the following line of code
    <SharePoint:Scriptlink runat="server" Name="~sitecollection/Style Library/[YOUR SITE]/js/functions.js" Language="javascript" />
    Thanks,
    Vivek
    Please vote or mark your question answered, if my reply helps you

  • [svn] 3921: Fix for - @inheritDoc tag not working for get/ set overrides when you only override the setter of a base class

    Revision: 3921
    Author: [email protected]
    Date: 2008-10-28 06:23:00 -0700 (Tue, 28 Oct 2008)
    Log Message:
    Fix for - @inheritDoc tag not working for get/set overrides when you only override the setter of a base class
    QE Notes: Baselines for framework test will need to be updated.
    Doc Notes: None
    Reviewer: Paul
    Bugs: SDK-17304
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17304
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ASDocExtension.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ClassTable.java

    Revision: 3921
    Author: [email protected]
    Date: 2008-10-28 06:23:00 -0700 (Tue, 28 Oct 2008)
    Log Message:
    Fix for - @inheritDoc tag not working for get/set overrides when you only override the setter of a base class
    QE Notes: Baselines for framework test will need to be updated.
    Doc Notes: None
    Reviewer: Paul
    Bugs: SDK-17304
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17304
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ASDocExtension.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ClassTable.java

  • URL Mapping not working inside MOSS

    hi,
    I want to achieve broken URL redirection in old web application developed in MOSS.
    For this purpose, i have to use URL mapping inside web.config -
    For Example -
    <urlMappings enabled="true" >
        <add url="~/brokenpath" mappedUrl="/subsite/Pages/Home.aspx" />
    </urlMappings>
    I have checked that '/subsite/Pages/Home.aspx' url is not broken but still getting 404 exception.
    Similar tag is working under dev/local environment but not working in the production,
    Can anybody please let me know the problem or any configuration missing.
    Thanks in advance.

    Hi Saurabh, can you provide the actual broken path, both in your web.config as well as the absolute URL?
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Jstl xml parser not working

    i cant seem to be able to select the values from the imported xml file and i dont understand why?
    my jsp page:
    <%@ page import="java.util.*;" %>
    <%@ page contentType="text/html; charset=ISO-8859-5" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <html>
    <head>
        <title>Interactive Experience Database - Template 1</title>
        <LINK REL="STYLESHEET" TYPE="text/css" HREF="style.css">
    </head>
    <body>
    <FORM>
    <c:import var="xmlfile" url="/cv.xml"/>
    <x:parse var="doc" xml="${xmlfile}"/>
    <x:out select="$doc/cv/ContactInfo/PersonName"/>
    </form>
    </body>
    </html>the xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE cv>
    <cv>
    <ContactInfo>
         <PersonName>Donald Smith</PersonName>
    </ContactInfo>
    </cv>

    thanks, one thing that annoys me is that that apache
    make it so hard to download anything, finding the
    binary is so time consuming, ive been looking for the
    last half hour. its a jokeI kind of agree with you that for certain projects it is a little difficult to find the stable release of the binaries. I personally find it very time consuming to locate the binary for JSTL 1.1 , and finding the binary for Xalan seems a little more easier than finding the one for JSTL 1.1
    For Xalan I was quickly able to locate it through google:
    Searched for "download apache xalan" , then Google showed me
    http://xml.apache.org/xalan-j/downloads.html then I clicked on :
    http://www.apache.org/dyn/closer.cgi/xml/xalan-j
    ~~~~~~~~~~~~~~~~~~~~~~
    But for JSTL 1.1 it took quite a number of steps :
    Searched on Google for : "download JSTL 1.1"
    First link showed:
    http://java.sun.com/products/jsp/jstl/downloads/index.html
    Shows the link for Standard 1.0 instead of Standard 1.1
    (A newbie to JSTL wouldn't know that there's a 1.1 final release download available)
    another link for the same keywords takes me to:
    http://jakarta.apache.org/taglibs/
    Then I click on downloads: http://jakarta.apache.org/taglibs/#Downloads
    but it only shows Nightly Builds downloads not the stable release ones.
    Then I click on JSTL1.1 on the left nav takes me to
    http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html
    The download link finally takes me to:
    http://people.apache.org/builds/jakarta-taglibs/nightly/
    which is again nightly
    Then I carefully read and finally see:
    Download the Binary Distribution of the Final Release:
    http://jakarta.apache.org/site/downloads/index.html
    Then I click on TagLibs
    http://jakarta.apache.org/site/downloads/downloads_taglibs.html
    and pick Standard 1.1 Tag lib (assuming that is JSTL 1.1)
    http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi
    I guess I could report this issue to Apache Taglibs and have them make it more efficient to locate the download for the Taglibs.

  • JSTL escapeXml() function not working. . .

    Hi all,
    I have a problem trying to use the function �escapeXml()� from the functions tag library, my code is below. I have added JSTL1.1, both standard.jar and jstl.jar, to my project. I have placed the fn.tld in the WEB-INF directory and web.xml contains corresponding entries. Everything compiles etc.
    I am using JBuilder 2005; JDK 1.4.2, Tomcat 5.0 (Servlet 2.4 + JSP 2.0), Java 2 DSK v1.2 & later.
    When I web run the project it�s like the servlet container is not processing this function and it is returned to the browser as regular text, i.e. �${fn:escapeXml(product.productName)}�
    Maybe it is something silly that I�m doing (or not doing) but I would really appreciate some help if possible.
    Thanks in advance!
    Graham
    <%@ page errorPage="list_error.jsp" %>
    <%@ page language="java" contentType="text/html" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
    <html>
    <head>
    <title>list</title>
    </head>
    <body bgcolor="#ffffff">
    <h1>Product List</h1>
    <jsp:useBean id="list" class="htunes.ProductListBean" scope="request" />
    <p>
    <table border=0>
    <c:forEach items="${list.productList}" var="product">
    <tr>
    <td>${fn:escapeXml(product.productName)}</td>
    </tr>
    </c:forEach>
    </table>
    </p>
    </body>
    </html>

    Sorry for not formatting the code. Here goes!
    <%@ page errorPage="list_error.jsp" %>
    <%@ page language="java" contentType="text/html" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
    <html>
    <head>
    <title>list</title>
    </head>
    <body bgcolor="#ffffff">
    <h1>Product List</h1>
    <jsp:useBean id="list" class="htunes.ProductListBean" scope="request" />
    <p>
      <table border=0>
        <c:forEach items="${list.productList}" var="product">
          <tr>
            <td>${fn:escapeXml(product.productName)}</td>
          </tr>
        </c:forEach>
      </table>
    </p>
    </body>
    </html>

  • Find and item Search not working inside custom list in sharepoint 2013

    HI,
    In Sharepoint 2013 , i configured the Search. it is working in home page search Box and Find item search box  inside custom list as well But one particualr custom list  Find an item is not working. Any clue ?Thanks in Advance
    Thanks
    sanjay pradhan  

    Hi,
    According to your description, my understanding is “find an item” search box in a custom list not work in your environment.
    As search box and “find an item” search box in your home page are working, so the search service application is working.
    Do you have any customzation to the particular custom list ?
    If No, I suggest you can full crawl the data in Central Administration ->Manage Service Application->” Search Service Application”-> Manage Content Sources” to test if it works. 
    Also, please check if you have set "Allow items from this list to appear in search results" in list settings->Advanced Setting to true
    Best Regards
    Jerry Guo
    TechNet Community Support

  • ORACLE tags not working after 1.5.1 patch

    I have some logic in my template the looks up information from some Oracle tables. This logic worked fine in 1.5.0, however, after applying the 1.5.1 patch it does not perform the Oracle logic, but shows the Oracle code as HTML on the page. Here is the code in question: (This is not the entire code, but one HTML TD that comes before the Oracle code, and one HTML TD that comes after it)
    <TD align="center" valign="top"><A
    href="/pls/portal/PORTAL.home"><IMG src="#WORKSPACE_IMAGES#ihome.gif" alt="Home" border="0"></A></TD>
    <ORACLE>
    BEGIN htp.tableData(htf.anchor2('javascript:help_openTopic(''/insitehelp/Insite_Help.htm'', ''' || pkg_insite_general.help_link(v('APP_ID'), v('APP_PAGE_ID')) || ''')', '', '', '', '><IMG src="#WORKSPACE_IMAGES#ihelpl.gif" alt="Help" border=0'), 'center');
    END;
    </ORACLE>
    <TD align="center" valign="top"><IMG src="#WORKSPACE_IMAGES#ilogout.gif" alt="Logout" border="0"></TD>
    This is what displays on the web page:
    BEGIN htp.tableData(htf.anchor2('javascript:help_openTopic(''/insitehelp/Insite_Help.htm'', ''' || pkg_insite_general.help_link(v('APP_ID'), v('APP_PAGE_ID')) || ''')', '', '', '', '>

    Your removal of functionality in a bug fix has broken a production application for us. This does not seem like something that should have been done with a "patch"
    I have just read all that I can find on "shortcuts" and am not finding what I need.
    Here is what we are doing:
    We are using RoboHelp for our help content. We have a help icon and a help link on the header of the page. This is defined in our template. We have to have the name of the module (Page Alias) to link the page being run to the help content for that page. Since you do not have a system variable for page name or page alias, I have had to put this information into an Oracle table. I was looking that up with a function within the Oracle Tags.
    Can I create a shortcut that would create the following code pl/sql code into a PL/SQL function body:
    BEGIN
    htp.tableData(htf.anchor2('javascript:help_openTopic(''/insitehelp/Insite_Help.htm'', ''' || pkg_insite_general.help_link(v('APP_ID'), v('APP_PAGE_ID')) || ''')', '', '', '', '><IMG src="#WORKSPACE_IMAGES#ihelpl.gif" alt="Help" border=0'), 'center');
    END;
    and call this shortcut where this help icon needs to appear like:
    <TD align="center" valign="top">
    "CALLHELPWITHICON"
    </TD>
    I have done the above, but it does not work. What am I doing wrong, how can I get this to work? We have had to remove our help icons because of this patch.
    I thank you so for your research on this.

  • CFQUERYPARAM tag not working in GROUP BY clause

    I am getting an error whenever I put a CFQUERYPARAM tag in a
    GROUP BY clause. I saw on another message board someone was having
    a similar problem with the ORDER BY clause
    Here is a sample of what my code might look like
    select x, y, z from abc
    group by <cfqueryparam value="x"
    cfsqltype="cf_sql_float">
    Here is the error I receive.
    Error Executing Database Query.
    [Macromedia][Oracle JDBC Driver][Oracle]ORA-00979: not a
    GROUP BY expression
    Any insight?

    The cachedwithin and cachedafter functions store the query
    results in the server's RAM. That means, while it's cached,
    whenever you run it, you get the cached result instead of going to
    the database to run it again. This increases speed of course, but
    if the data changes during the cache period, you have accuracy
    problems.
    It does not create memory issues. In the administrator you
    reserve a certain amount of memory for query caching. If you exceed
    that amount, the last query in pushes the first query out, or
    something like that.
    With regards to what you are trying to do about binding
    variables in your group by clause, that's not what cfqueryparam was
    designed for. It was designed for
    where clauses (where this = <cfqueryparam etc>
    or insert queries (insert into my table (field) values
    (<cfqueryparam>
    and things like that.
    You are trying to use it for something other than what it was
    designed for, which explains why it's not working for you.

  • ITunes Explicit tag not working correctly

    Hello, I have a problem with manually added 'explicit' tag in iTunes. iTunes show tag correctly near the song, but there is no red 'E' label in the ''now playing'' box.
    How can I fix this problem?
    I tried to re-add a song into the library, it's not helps.
    I think, that this is the different tags in the file, how can I check the second tag? Maybe someone have a script to manually add that tag to AAC file?

    Same for me. I don't know why that happens. I restarted my Macbook, quit iTunes, and it still did not work.

  • MenuBar tag not working?

    I finally got FB4L working on Fedora 6. Now I am trying some
    sample applications. I managed to get a small test application
    working with a label tag. Compiling and viewing in FireFox went
    smoothly.
    Now I took the next step: the MenuBar tag. This one is not
    working well. I used the sample code of
    http://livedocs.adobe.com/flex/15/asdocs_en/mx/controls/MenuBar.html
    I do not get a menubar, but a "textbox" with the content of
    my XML text as it appears in my source code.
    Anyone else has more luck with this MenuBar tag?
    I suppose we can post these kind of bugs as the FB4L is still
    alpha?
    Regards,
    Frank

    The problem is not with Flex Builder, it's with the sample :)
    In the menubar MXML tag, you need to specify the labelField
    property. Otherwise, the menubar does not know what to display. Use
    this and it should work:
    <mx:MenuBar id="menubar" labelField="@label"
    dataProvider="{myMenuData}"/>

  • Html 5 audio tag not working

    Hi, I am trying to create a web page that links to an audio file. I have added the <audio> tag which works in my Safari browser on my Mac but does not work on the i-phone. If I save the page by bookmarking and adding to my Home Screen I have more success. This is not a desirable option.
    Does anyone have any ideas?
    Glenn

    well for anyone else.
    my html was fine. in fact the server nginx was returning the wrong content-type and so i had to add the MIME types into my nginx config file.

  • Photoshop button not working inside of target?

    I'm operating OSX Snow Leopard and the latest edition of Muse 2.2. However, I was having these issues with the version before 2.2 as well.
    I created a simple photoshop file containing 2 states Normal and Over. When I place as photoshop button outside of the target it functions properly. When I place within the target it does not. Any suggestions? I'm using the tooltip composition widget.
    Thanks!

    It does not depend on the version of Photoshop. It will be same for all the versions.
    I understand what you are trying to explain. I would like to tell you that it works outside the trigger because when it is outside the rigger it is not in active state.
    However, when you take it inside a trigger, whenever the trigger is selected, it comes to active state. And "Whenever a link/button is in active/visted state, other states do not work on it".
    And as you said you only have two states i.e Normal and Rollover, when you insert such photoshop buttons into Muse it automatically copies the normal state settings to Active state and the rollover state settings to mouse down state.
    Please have a look at the screenshots
    When I insert a button with only two states :
    It copies the states to mouse down and active as well :
    Now, please try and insert the photoshop button in the second trigger instead of first trigger of the widget. Wthout clicking on it, just check if the color of the button inside the second trigger changes or not on hovering the mouse over it. It ideally should.
    But once you click on the second trigger, it will make it active (Whose colour is same as the normal state in your case) and all other states will stop working.
    Now, please look at the video through the link which I posted in my last comment.
    Hope this explains the situation.
    Regards,
    Sachin

Maybe you are looking for

  • Carbon X1 and BIOS version 1.17

    I made the mistake of being an early adopter of this BIOS upgrade. But in my defense, the update utility said it was a 'critical' update! As a result my Carbon X1 will no longer stay hibernated if I have a USB device plugged into the USB port on the

  • Loop in smartform - how to make values valid in all pages

    Hi All. I have a smartforms with several pages (9). I must print these 9 pages once for each line in the internal table ITAB. When I put a loop in the first page, the data under that loop is printed correctly, but every text node outside the loop alw

  • I-pod shuts down when browsing album covers

    After updating the i-pod touch to the new Op System 5 the player will shut down when I browse the album covers (holding the i-pod horizontal). It will work for about 5 covers but then shuts down. I did a reset but did not help Anybody who is familiar

  • How to verify that ocr and votingdisk is normal??

    Hi. all. I am new to Oracle clusterware. How to verfiy that oracle clusterware is running without problems?? I am reading RAC Administration Guide, but there are so many commands about Oracle Clusterware. I would like to hear your experience and advi

  • ARD is spamming an old IP address...why?

    First of all, let me say, I am fairly new to ARD so bear with me. We have several labs that have ARD enabled. Each of the machines in these labs are constantly and consistently trying to contact an IP address that is no longer valid. The IP address t