How can I do a dynamic include of a page fragment?

I have a technical support website with a lot of simple html pages. What I want to do is hyperlink from the index page to another page, which would display these html pages as a page fragment, dynamically based on a session bean set by the hyperlink.
I basically want to do this, if it was possible:
<jsp:directive.include file="#{SessionBean1.pageToDisplay}"/>
Now the FAQ's has a topic "How can I do a dynamic include of a page fragment?", which would seem to answer my question.
But this is all it says, and it makes no sense to me. Could someone please translate? :)
"Using a page fragment file (but using instead of the usual Creator approach) will accomplish a dynamic include."

Here is 1 solution:
First add this to the jsp:root tag:
xmlns:c="http://java.sun.com/jsp/jstl/core"
Then surround the page fragment directive with something like this:
                        <div style="position: absolute; left: 24px; top: 408px">
                            <c:if test="${SessionBean1.count > 0}">
                                <jsp:directive.include file="testPF.jspf"/>
                            </c:if>
                        </div>

Similar Messages

  • How can i add a dynamic header value in to the pdf

    I am using a AssemblerService (Invoke DDX) to modify a Pdf file. How can i enter a dynamic value into the header using ddx ?
    DDX used
    <DDX xmlns="http://ns.adobe.com/DDX/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd">
        <PDF result="Out1">       
            <PDF source="Doc2">
                <Header>
                    <Right>
                        <StyledText>
                            <p>"here i need to add a dynamic data from the process"</p>
                        </StyledText>
                    </Right>
                </Header>
            </PDF>
        </PDF>
    </DDX>
    Thank You.

    Insertion Point is a placeholder Object which is used to dynamically replace while assembling. Search through the assmber guide to get any hints.
    Nith

  • How can I create classes dynamically?

    Guys
    My requirment is I want to create classes and their instancess too dynamically. First is it possible in Java?
    If so, then my next question is how can I refer such dynamically created classes in my code to avoid compilation error.
    Thanks in advance
    Regards
    Sunil

    For other ways to generate classes on runtime you could also have a look at BCEL:
    http://jakarta.apache.org/bcel
    And dynamic proxies:
    http://java.sun.com/j2se/1.4.2/docs/guide/reflection/proxy.html
    If so, then my next question is how can I refer such
    dynamically created classes in my code to avoid compilation
    error.Generally the classes that you load should either implement some interface or extend some abstract class you know of at compile time so that the compiler knows what methods are available for use. If that's not possible you can only use reflection.

  • How can you take a video including music from IPhoto and put it onto a disk?

    How can you take a video including music from IPhoto and put it onto a disk?

    You need burn software which will author/encode the movie so it can be viewed using any DVD player - there is iDVD (still available as part of the retail 09 or 11 iLife disks at online resellers including ebay and Amazon) or Roxio Toast ($$) or Burn (free, but very basic).

  • How can I set a book to open full-page?

    I can't track the information I'm looking for, so I need to ask:
    How can I set a book to open full-page and not with the graphic table-of-contents? I'd like to lead in with a video (when the book is first launched), and have the video hand off to the copyright page, full page, not where the reader has to pick it from the graphical table of contents.
    Many thanks for your help!

    I'm a frequent user of the Reminders app but I want to set a reminder that will automatically open another app.
    Maybe I should make a suggestion to apple to include it in the next iOS update.

  • How can i run unix script from my apex page

    how can i run unix script from my apex page and take the output of unix script as a hidden variable and display it on the report region of that page

    I had a requirement to run a Fortran program against some data that woudl be extracted from the database after the user set up their filtering criteria and made some additional input. SInce the program was to complex to conver to PL/SQL, we decided to try and invoke it from Apex. This is how I did it.
    1. I followed the steps in Tim Archer's excellent article "Oracle External Procedure to Run Host Commands" (http://www.timarcher.com/?q=node/9). If the link does nto work, google the article's title.
    Using this steps I created a function which accepts any OS command, including calling my own shell scripts, and runs them. I called my PL/SQL function "shell" instead of "USF_RUN_HOST_CMD " as Tim did in his example (step 9).
    2. In Apex,
    a. I created a button to run my shell command. (I named it P2_RUN_SHELL)
    b. I created a PL/SQL process whose source looks as follows:
    shell('/home/ackness/scripts/cr_xcf_file.sh > /tmp/cr_scfp_file.log');
    and which was conditioned on the the button P2_RUN_SHELL.
    It works like a charm.
    Note: since you can run your own scripts using this method, you can encapsulate a series of commands in a UNIX shell script and invoke that script from Apex. This allows you to be able to test or run you commands from the command line as well as Apex and makes it easier to develop/debug/enhance the scripts in the future.
    Ackness

  • How can I print just a part of the page and not the full page with Adobe Reader v 10.1.2?

    how can I print just a part of the page and not the full page with Adobe Reader v 10.1.2? I need to print a engineering print with lot of information but information is too small in letter size and I don't have a plotter.

    Two ways to print a portion of a page: zooming or using the Snapshot Tool.
    ZOOMING:
    Zoom into the area you want to print.
    Click the Print icon.
    Under "Pages to Print", make sure "Current view" is selected under "More options" (you may need to click "More options" to open it).
    If you aren't satisfied with the preview, try clicking "Fit" under the Size button.
    SNAPSHOT
    Choose Edit > Take A Snapshot.
    Drag a rectangle around the area you want to print. 
    Click the Print icon.
    Under "Pages to Print", make sure that "Selected Graphic" is selected under "More options".
    To enlarge the snapshot to fit the sheet of paper, choose "Fit" under the Size button.
    Hope this helps!

  • How can I make a backup of my iWeb page, How can I make a backup of my iWeb page

    How can I make a backup of my iWeb page? Is iWeb also disappearing on June 30?

    Here are some Apple help sheets about backing up your files:
    http://support.apple.com/kb/HT1813
    http://support.apple.com/kb/HT1105
    And I found this one written by an independant guy very thorough and helpful:
    http://iwebfaq.org/site/iWeb_Backup_retrieve.html
    iWeb is not going away, but I would be skeptical about how much longer Apple keeps it around. 
    If you are looking for a new place to host your website, I use and would recommend Little Oak (www.littleoak.net).  They are a Mac hosting company, and are even offering a discount right now for iWeb users (http://www.thewhir.com/web-hosting-news/web-hosting-sales-and-promos-roundup-jun e-29-2012)

  • How can I wrap text in a pie in pages?

    How can I wrap text in a pie in pages?

    If you need to insert text into a shape like a pie wedge, the easiest way might be to simply use the shape - freeform tool (at the bottom of the shape menu) and create a shape and type your text in it then place the shape over your pie wedge. The text within the shape should wrap - additional controls for text can be used with the Text Inspector.
    You can edit the actual shape with Format Object > Make Shape Editable option but unfortunately, you have an option to make straight or smooth curves, but not both, so you'll need to shape the object using smooth curves and use the the bezier controls that appear as you select a control point.

  • How can I code to play audio continuously from page to page in iBooks for reflow ePub

    Hi,
    I have tried and successfully completed the iBooks ambient soundtrack option in Fixed Layout ePub. It works fine.
    But while trying the same in Reflow ePub, it is not working in iPad iBooks. I have latest iBooks version and latest iOS version in my iPad.
    Please let me know how can I code to play audio continuously from page to page in iBooks for reflow ePub?
    Thanks,
    Sundaram

    As soon as the user turns to the next page, the audio stops.
    That's how it works in all cases.
    the book is a read aloud book.
    See the 'How-To Read Aloud' section in iBA Tips and Tricks 01

  • How can I set download restrictions on a web page ?

    how can I set download restrictions on a web page ?
    I mean: to make a web site with text and pictures but in a way that the visitors cannot download the pictures or text ?
    Is it possible ?
    Thanks

    Freeway allows you to inject code into the HTML of the page. Upload the movie file to a folder on your server and reference it in the code.
    <script src="http://www.domain.com/Folder-Name/QT-JS.js" language="javascript"> </script>
    <script language="javascript">
    QT_WriteOBJECT('http://www.domain.com/Folder-Name/Movie.mp4' , '640', '496', '', 'AUTOPLAY', 'false', 'CONTROLLER', 'true', 'VOLUME', '50', 'KIOSKMODE', 'true', 'SCALE', 'Aspect') ;
    </script>
    If you are going to go this route it would be better to use HTML5 with flash fallback to cover all browsers and devices...
    http://www.iwebformusicians.com/Website-Movie-Video/Easy-Movie-Player.html
    http://www.iwebformusicians.com/Website-Movie-Video/JW-Media-Player.html
    http://www.iwebformusicians.com/Website-Movie-Video/Fallback-To-Flash.html
    http://www.iwebformusicians.com/Website-Movie-Video/Flow-Player.html

  • How can i call a zreport from my bsp page.

    Hi friends,
    How can i call a zreport from my bsp page.
    Moosa

    Hi Friend,
    These are the codings  to be wirtten in BSP for transferring values to the REPORT
    DATA:wf_date TYPE ztable-ID.
          data:seltab type standard table of rsparams,
           wa_seltab like line of seltab,
         event TYPE REF TO if_htmlb_data.
    DATA:p_value TYPE REF TO CL_HTMLB_INPUTFIELD.
    event = cl_htmlb_manager=>get_event( runtime->server->request ).
    p_requ ?= CL_HTMLB_MANAGER=>GET_DATA(
                                            request  = runtime->server->request
                                            name     = 'inputField'
                                            id       = 'i1'
    if p_requ is not initial.
      wf_date = p_requ->value.
    endif.
    clear wa_seltab.
    if wf_date is not initial.
      wa_seltab-selname = 'P_REQU'.
      wa_seltab-kind = 'P'.
      wa_seltab-option = 'EQ'.
      wa_seltab-low = wf_date.
      append wa_seltab to seltab.
    endif.
    submit *ZSAMPLEAP1* with selection-table seltab AND RETURN  .(ZSAMPLEAP1 refers to the report name and AND RETURN for coming back to the BSP page after the completion of its operation in Report )
    IMPORT int_name TO int_name FROM MEMORY ID '*zid*'.(For importing the obtained value from Report)
    In Report
    REPORT  ZSAMPLEAP1.
    SELECT-OPTIONS: p_requ FOR ztable-id  NO INTERVALS.
    SELECT SINGLE name from ztable into int_name WHERE id = p_requ-low.
    WRITE:int_name.
        EXPORT int_name TO MEMORY  ID 'zsharmila'.
    With Regards,
    SHARMILA BRINDHA.M

  • How can I set home page for a new tab? how can i get firefox to open the home page every time i open a new tab in Windows vista home basic??

    How can I set home page for a new tab? how can i get firefox to open the home page every time i open a new tab in Windows vista home basic??
    == This happened ==
    Every time Firefox opened

    Firefox can have multiple home pages if you wish. Each home page that will open when starting Firefox is separated by the "|" character.
    See: http://support.mozilla.com/en-US/kb/How+to+set+the+home+page
    To have new tabs open a specific web site, add one of the following extensions:
    http://sogame.awardspace.com/newtaburl/
    https://addons.mozilla.org/en-US/firefox/addon/777

  • Avg/yahoo page comes up when i open a new tab how can i change it back to my home page

    avg/yahoo page comes up when i open a new tab how can i change it back to my home page. it does have a get rid of this page button but it is a link t buy the full edition of avg.
    == i downloaded avg free edition

    BY removing avg toolbar from your firefox adds-on should remove this problem

  • How can i get my imac proceed to home page from restarting endlessly?  it will start then start booting then chime then bck to step one, not even hitting the start up page.... plssss help!

    how can i get my imac proceed to home page from restarting endlessly?  it will start then start booting then chime then bck to step one, not even hitting the start up page.... plssss help!

    Hi
    My Powerbook was the same. Only fix is to reinstall OSX from the install CD but be sure not to pick the Format and install clean. Once you boot with the install CD pick the preserve user data and settings.
    On My machine the reinstall looked perfect. My network, email, files and all the programmes were all there. Most apps worked fine but Adobe CS2, Virtual PC and NetBarrier all needed reinastallation as they reported a few files or registration was missing. I went for the 10.4.3 upgrade again and it worked fine.
    Good luck
    D

Maybe you are looking for

  • Payroll : Mid Month joining

    Dear Experts, Generally Payroll will be generated based on Payroll area ( Example D1 ) for group of employees. But one Person ( Ex : Person No - 1000 ) joined in one company in mid of the month and he belongs to same Payroll area ( D1) how can we run

  • HP Photosmart 8250 will no longer recognize photos downloaded from Facebook. Any ideas?

    I used to download and print photos from Facebook, but the HP Photosmart 8250 will no longer recognize these files on the SD card.  I believe Facebook recently updated it's photo format (incidentally, older images on Facebook still work fine).  Any i

  • Financial extension sets and flb1 post processing items are not there

    "Forum moderators, if you reject this post please tell me exactly what is incorrect about it in your rejection message". Hello experts, We are currently in 4.7 and have activated financial extension set EA-FIN.  I tested electronic lockbox programs b

  • DMS server installation

    Hello All, I understand that DMS is part of ECC 6.0. However I have noticed in some threads a seperate content server is also installed. Could you please clear me the following doubts? 1.Do we need to install any other component like SAP content serv

  • How can I create a newsletter without WUFOO?

    Regards , thanks