Results 1 to 3 of 3
  1. #1
    jadeite100 is offline Member
    Join Date
    Dec 2009
    Posts
    13
    Rep Power
    0

    Default how to create dynamice include

    Hi All:

    I am using Icefaces 1.8.2 with JSF 1.1.
    I can make the following include work:
    <jsp:directive.include page="/test/contacts/testMain.jspx" />



    However, I cannot make the following include work:
    <jsp:directive.include page="#{sessionBean.tab.url}" />

    I want the value to come from the bean "sessionBean.tab.url"

    The only way I can make it work would be to convert the project to facelet and use this:
    <ui:include src="#{sessionBean.tab.url}" />

    I don't want to use facelet.

  2. #2
    nicephotog is offline Member
    Join Date
    Mar 2012
    Posts
    41
    Rep Power
    0

    Default Re: how to create dynamice include

    jsp: ${.....
    #{ JSF

    You could transfer it to variable in a scriptlet first

  3. #3
    nicephotog is offline Member
    Join Date
    Mar 2012
    Posts
    41
    Rep Power
    0

    Default Re: how to create dynamice include

    Why not use step over scripting

    Java Code:
    <%
    if(includeit==true){
    %>
    <jsp:include page="/test/contacts/testMain.jspx" />
    <%
    }else{
    %>
    NOT INCLUDED
    <%
    }
    %>

Similar Threads

  1. Replies: 0
    Last Post: 03-02-2010, 08:28 AM
  2. include-prelude/include-coda
    By devin in forum Java Servlet
    Replies: 0
    Last Post: 02-11-2009, 07:33 PM
  3. jsp:include in a sql:transaction
    By sam2020 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 07-31-2008, 08:11 PM
  4. Replies: 5
    Last Post: 07-29-2008, 02:13 PM
  5. jsp:include and include file
    By Heather in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 07-14-2007, 04:19 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
  •