How to include a file as variable in %@ include file tag.

Hi,
I have a interesting problem here, how can I include a file in <%@ include file tag. where the include file path is a variable. I am trying to implement the following statement.
<@ include file="<%=headerLogic_template %>">
where headeLogic_template is a variable which contains the actual path of the include file.
Thanx,
Ramana.
email:[email protected]

Please note that you can not write anything else between the quotes nor for page specification or parameters.
BAD EXAMPLE!!
<% for (int i = 0; i < 20; i++) { %>
<jsp:include page="included.jsp" flush="false">
  <jsp:param name="apa" value="prestring_<%=i%>"/>
</jsp:include>
<% }BAD EXAMPLE!!

Similar Messages

  • How to Include html tag in xml

    Hi,
    Is there any way to include html tags in xml?
    For Example, I'm using xsl to get the value of FIELD_1 from fetch.xml
    In fetch.xml, I have the tag
    <FIELD_1>
    <font color='#8080ff'>&#160;<font face='Times New Roman, Times' size='28'>Testing font and color</font></font>
    </FIELD_1>
    But If I tried to read the value from xsl like <xsl:value-of select="FIELD_1"/> I'm just gettig the display 'Testing font and color' without the specified font and color....
    How to achieve this?
    Thanks
    Selva.

    Hi,
    Thanks for the input.
    I tried with the below code
    <fo:block space-after="5mm" font-family="Arial"><xsl:copy-of select="FIELD_1"/></fo:block>
    But I'm getting the below error...
    "An invalid XML character (Unicode: 0xa0) was found in the element content of the document."
    Below is the code included in the xsl....
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="Values"><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:layout-master-set>
    <fo:simple-page-master master-name="simpleA4" page-height="29.7cm" page-width="21cm" margin-top="3cm" margin-bottom="2cm" margin-left="2cm" margin-right="2cm">
    <fo:region-body/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="simpleA4">
    <fo:flow flow-name="xsl-region-body">
    <fo:block space-after="5mm" font-family="Arial"><xsl:copy-of select="FIELD_1"/></fo:block>
    </fo:flow> </fo:page-sequence> </fo:root> </xsl:template></xsl:stylesheet>
    Is there any mistakes in the above code?
    Regards,
    Selva.

  • How to include alt tags in Javascript

    how do I get the javascript in my navigation menu to be read from an external file (java include)?
    I've never learned how to create an external file so I'm a little hazy on how to accomplish this task.
    Thanks!
    Lynn

    Hi! Thanks for attempting to answer my question...frankly I'm not sure what I'm asking.
    My pages are coldfusion (.cfm) and I have two javascript areas on the page where there is a navigation menu and a set of swapping .swf files. what I believe my graphic department is asking me to do is to create a file in my includes folder that will provide the scripting for the menu and will include the alt tags for each of the items on the naviation menu.
    Not a friggin' clue on how to accomplish this...so I'm looking for a tutorial or tutor. the website is www.calibresys.com
    Thanks!
    Lynn

  • How to include HTML tags in a success message?

    I have seen a few posts on this topic in the past, but have not seen a definitive response...apologies if this has been answered.
    I would like to have a dynamic process success message that includes some HTML tags in it - in this case an anchor tag that can jump the user back to the object he/she just edited.
    So, I build up a dynamic success message in a page variable - say P10_SUCCESS_MSG - and set the Process Success Message field in the relevant Process to &P10_SUCCESS_MSG.
    The problem is that when the page template substitutes in my message for #SUCCESS_MESSAGE# it looks like it also escapes any HTML tags, so the markup gets displayed literally on the page.
    Is there any recommended way to override or get around this behavior?
    Many thanks,
    Bill

    I just noticed that it looks like the success message is passed around on the URL - when I look at my URL after a successful form process, I see &success_msg=BIG_UGLY_ESCAPED_SUCCESS_MSG_HERE embedded in the URL. If this is the case, I can see why - technically - it ends up getting escaped. Looks like I may have to figure out my own hack for success message processing - maybe some weird post-processing of a placeholder success token that I replace in a page 0 process or something...

  • How to include .jar files in coldfusion code 

    To Integrate our cfm code with paypal jar files we do the
    following steps with our local coldfusion server ,and to run and
    integrate the paypal Java SDK jar files, I think we need to do the
    same process on the server, can you suggest any thing to do the
    following setting for my domain on the server, without setting the
    class path in coldfusion administrator.
    The ColdFusion application server must be configured to know
    the location of the PayPal JAR
    files, and your ColdFusion Markup (CFM) pages must be
    configured with the absolute path to
    the PayPal API certificate for the PayPal API user on whose
    behalf the calls are made.
    1. Install the PayPal Java SDK “Installing the
    SDK”.
    2. Copy a subset of the Java SDK JAR files to a location
    accessible by the ColdFusion
    application server. The JAR files are in SDK_root\lib and
    their exact names are as
    follows:
    – bcmail-jdk14-128.jar
    – bcprov-jdk14-128.jar
    – paypal_base.jar
    – paypal_stubs.jar
    sax2.jar
    – xerces.jar
    – xpp3-1.1.3.4d_b4_min.jar
    – xstream.jar-1.1.3.jar
    3. With the ColdFusion Application Server Administrator, add
    the absolute path of the
    location you determined in Step 2 to the Java and JVM
    CLASSPATH environment variable.
    4. Restart the ColdFusion Application Server.
    Suggest me how to include .jar files without setting
    classpath.

    > Suggest me how to include .jar files without setting
    classpath.
    Copy them to {CF_HOME}\lib, where {CF_HOME} is, for example,
    C:\CFusionMX7. Restart Coldfusion.

  • How to include HTML file in JSP using HTML elements or Javascript?

    Hi,
    I have around 15000 static html files one for each item which we display each upon invoking an item.The HTML file should be part of a JSP file.
    Please note that the name of the HTML file is determined dynamically
    Placing all the HTML files within the web application does not give us good performance so i would like to put all of them in the webserver.
    I am not able to include the file in the JSP using the jsp:include attribute if i place the HTML files in the webserver ,
    in order to do that i think should use either HTML element or javascript to include the HTML in the JSP.is there any alternative to <Jsp:include>
    Does anyone have an idea how to include the HTML file and take advan tage of webserver?
    Any ideas are appreciated

    What you need to do is simply read the HTML file from the disk and dump it out to the outputstream. It really is that simple.
    There's no reason you need to include all 15000 files in the actual WAR, you can place those files any place handy that is easy for the application to see (in another directory, or accessible from a file server if you have multiple front ends).
    Then, just write a utiility function that takes the output stream (i.e. the 'out' JSP variable), and the file name, read the file, and write it to the stream.
    If you start noticing performance issues, then you can try doing some caching, but truth is your OS should be doing that for you.
    But, truth be told that's the only practical way to do it.
    Another solution would be to use JavaScriipt and XMLHttpRequest (i.e "AJAX") to load the file at the client side, and simply replace a tag with the results.
    That's also pretty trivial to write, any web site talking about AJAX should give you hint there.
    Of course, that won't work for folks who have JavaScript turned off, or some other incompatible browser, whereas the server side solution obviously works everywhere.

  • How to include a license header in fxml file?

    How to include a license header in fxml file?
    I tried xml block comments <!-- mylicense here -->
    but it wasn't accepted by screen builder.
    Also I wondered, even if it had been accepted, would screen builder have saved the header back - or deleted it?

    All XML documents should begin with an XML declaration.
    If you have your fxml file starting with  the following lines :
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- mylicense here -->
    .. it will be loaded in Scene Builder, and saved back as is.

  • How to include header files from different directories?

    Hi,
    Sorry for the newb question, but I can't figure this out. I'm trying to compile a simple piece of code (C++) that uses header files in a directory different from the Project directory; header files are in /opt/csw/postgresql/include/pqxx. I've tried a few different things, adding that directory to the include directives under Resource Files, add existing files from a folder, etc etc. Whenever I try to build, dmake bails with status -1. I can't seem to get this working, can someone explain how to use header files from different directories?
    Thanks,
    SlowToady

    Header files are usually specified relative to a base directory. If the base directory is not a system directory -- /usr/include or the compiler installation directory -- add a command-line directive
    -I path/to/base/dirfor each such directory.
    The path can be absolute, such as
    -i /opt/csw/postgresql/includeor relative, such as
    -I ../../my/includeIn your source code, specify the header file relative to the base directory, and be sure to use quotes, not angle brackets. Example:
    #include "header.h"  // right
    #include <header.h>  // wrongThe angle brackets are used for system headers, like <iostream> or <stdlib.h>.
    The rules above are common to all compilers on Unix and Linux, and generally to all C and C++ compilers.
    For more details, read about the -I option in the C++ Users Guide. You can find the guide by pointing your browser to the "docs" directory in the compiler installation, or go here:
    http://docs.sun.com/app/docs/doc/819-5267
    All command-line options are described in Appendix A.

  • How to include variable in the text column in report painter?

    Dear Expert,
    Would like to seek for your help to include How to include variable in the text column in report painter?Please advice.
    Thank you.
    Regards,
    Karen
    Edited by: Karen Swee Ping Ho on Jun 17, 2011 2:48 AM

    Hi,
    Thank you for the promt reply.
    1) How I include the variable in the column header to display fiscal year which I have selected from the selection screen?
    which variable should i use?
    2) Where can i find more information about the characteristic and which variable to be use base on the characteristic?
    For example: I would like to display the fiscal year from the selection screen/input screen when execute the report which also will reflected to the element definition and will display the fiscal year also in the column text?
    3) Kindly advise base on question 2, the variable that i use in element definition it will also display  in selection screen?
    4) When execute the report the first selection screen input parameter it obtain from where it is from element definition?
    5) Please advice how to be done when report execute with first screen input selection will also reflect the element definition of column and rom with the selection of the fiscal year?
    Please help.
    many thanks
    Edited by: KH on Jun 18, 2011 7:18 AM

  • How to include more than 12 files in a new PDF document?

    I have a Adobe PDF Pack, and when I click on crating a new PDF document, they say that I cannot combine more than 12 files...!
    And I want to have a document of hundreds of pages!
    Someone can help me?
    Pleeeeaaase!!!!!!

    Hi Hisami,
    Thank you very, very much!
    It is very useful what you explain.
    One only question, since I have the trying version of Acrobat Pro: how many files can you combine at the time with it?
    May be it depends on the files size.
    I tried yesterday to combine 50 files at the time and it just blocked everything...
    Thanks a lot!
    Have a very good day.
    Henric
    Henric Caldas
    30 rue de Belleville
    75020 Paris
    Home : +33.1.46.36.04.55
    Mobile : +33.6.59.08.02.27
    [email protected]
    Le 28 janv. 2014 à 22:48, "H.Spector" <[email protected]> a écrit :
    Re: How to include more than 12 files in a new PDF document?
    created by H.Spector in Adobe PDF Pack (formerly CreatePDF) - View the full discussion
    To combine more than 12 files into a single PDF file:
    1. Combine file 1 to file 12 then name it (combined 1 for example)
    2. Combine file 13 to file 24 then name it (combined 2 for example)
    3. Keep doing those steps #1 and #2 then combine "combined 1, Combine 2.....Combine 12).
    Another way is to use Adobe Acrobat. Please download Acrobat XI Pro Trial version from www.adobe.com or you can upgrade your subscription to Acrobat Plus(please see more information about Acrobat Plus subscription at https://www.acrobat.com/acrobatplus/en/home.html?trackingid=JPZKR).
    In Acrobat XI Pro:
    1. Launch Acrobat
    2. Select "File" menu > Create > Combine Files into a Single PDF
    3. Click "Add Files" button at top left corner
    4. After adding your files click "Combine" button at the bottom of the dialog.
    Thank you
    Hisami
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6062261#6062261
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6062261#6062261
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6062261#6062261. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe PDF Pack (formerly CreatePDF) at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How to Include JS file already available in SharePoint Site(Style Library) in Command action

    I have included JS file in command Action Using below command 
     <CommandUIHandlers>
            <CommandUIHandler
              Command="EnableCustomGroup"
              CommandAction="javascript:return true;" />
            <CommandUIHandler
              Command="CustomGroupHelloWorld"
              CommandAction="javascript:openPopup();" />
          </CommandUIHandlers>
        </CommandUIExtension>
      </CustomAction>
      <CustomAction Id="Ribbon.Library.Actions.Scripts"
     Location ="ScriptLink"
     ScriptSrc="/_layouts/15/images/Scripts/Popup.js" /> 
    It was working fine now I am embeding my project to Development Project in which we have divided the Modules in to two different projects One project with all Branding work including all CSS and JS files (including the above Popup.JS file) which once deployed
    and the js file is residing in Style Library. 
    The Second project has the Command Action to call the JS file which is already residing in Site (Style Library) I am unable to refer that file path I tried using "/Style Library...... Popup.js" and also the full URL "http://site collection/style
    Library/... Popup.js" just to make sure if it is working or not. But it is throwing error saying file is not found. Can anyone help me how to refer the file what source URL should i give. Thanks in Advance
    Thanks and Regards,
    Raj Kamal Singh Rathore

    Hi,
    According to your description, my understanding is that you want to reference the custom JavaScript file which stored in the style library in custom action.
    I suggest you can reference the js file using the relative path of Style library like below:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction
    Title="test"
    ScriptSrc="~SiteCollection/Style Library/jquery-1.11.2.min.js"
    Location="ScriptLink"
    Sequence="100"
    >
    </CustomAction>
    More information:
    Referencing JS files using CustomAction element
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to include external JavaScript files

    Hello All,
    i'm wondering haow can i include externel JavaScrip files, there is an clip-example with a function in the same JSP file
    but not how to include a file?
    <body>
    <script language='JavaScript' src="menu/menu.js'></script>
    If some one has a clip i would appreciate.
    Thanks
    Gino

    <script src="resources/myscript.js"></script>
    I did this exact thing in my jsp but it did not work, nothing popped up.
    When I tried replacing it with:
    <script language="JavaScript" type="text/javascript"><![CDATA[
    function postMessage(message) {
    alert(message);
    ]]></script>
    It worked. Can someone tell me why? Can't i refer to javascript files this way?

  • How to include animation files into muse test site on business catalyst?

    Hi there
    I am trying to publish a site created in muse to the business catalyst test website service for a client to review
    in the website i created an animation that i have inserted as an HTML snippet (ie copied relevant code into "INSERT HTML"
    The question is how do include the folder with all the files required to run the animation when i click "PUBLISH" to business catalyst?
    thanks

    Hello,
    You can make the changes in .muse file and then publish it to the existing site.
    It will automatically detect your old site when you click on File>Publish ONLY if you are using the same Adobe Id to upload the site which you used earlier to upload.
    You can check which Adobe Id you are using by going into Edit>Preferences option and under Publish with Account youwill find the Adobe Id which is being used to upload the site.
    you can change the Id (if required) by clicking on the dropdown and click on Switch accounts.
    Hope this helps.
    Regards,
    Sachin

  • How to include external files in JSP

    hi,
    How to include external files like image or javascript in to jsp pages.
    I am using MVC frame work. So i have to use request dispatcher. While calling the pages trough dispatcher the external files are missing from the output. Also am using tomcat as server,web.xml(deployment descriptor ) is also configured.
    regards
    sree

    When you use the request dispatcher, the relative path for all your ressources becomes the relative path of your calling serlvet and not the JSP/servlet that you call. Make sure to use the full relative path such as:
    /PATH_TO_YOUR_DIRECTORY/myRessource.ext
    NOT
    SOME_DIRECTORY/myRessource.ext
    Jeff

  • [SOLVED]How to include a .Changelog file in a package?

    I want to include a .Changelog file in a package I'm building. But in the wiki, it only mentions that it could exist, and not how to include it.
    Someone knows how to do it?
    Last edited by mcsilva (2010-02-21 14:39:05)

    just put a file named `ChangeLog` in the same directory as PKGBUILD and makepkg
    Edit: wonder It did take me a minute to validate my assumption.
    Last edited by lolilolicon (2010-02-21 12:46:24)

Maybe you are looking for

  • Problem in Printing Multiple Invoice data

    Hi, My re quirement goes like this... My SMARTFORM receives 2 internal tables : 1. Header data for all Invoices 2.Item data for all invoices. Now I need to print each invoice in a new Page. I have done like this. First I am reading the header table w

  • Damaged photos in Photoshop CC

    I've been working with my scanned photos saved in .tif. After my adjustments in PS (with some adjustment layers) I 've saved them again in .tif. and checked them in Bridge, everything is ok.  Next time when I want to open them some of the images are

  • "Photo Booth cannot open" due to graphics card, but nothing has changed!

    I've been using Photo Booth on my computer, and it's worked for over a year. Yesterday, when I tried to open the program, I received an error message: "Photo Booth cannot open The graphics card installed in this computer does not support Photo Booth.

  • Connecting To Mysql Server

    Hi all, In SAP is it possible to connect a mysql database and get data from? Our resources(machines) have a server and this server keeps data about production. And i want to connect this db server and get data with my syntax, constraints? Can i direc

  • 10.4.11 disk utility says, OK. Disk Warrior says many corrupted plist files

    I had been doing a permissions fix with disk utility and when I restarted, my entire home domain was GONE. Disk warrior got it back, but DW says a big list of plist files can't be fixed Address book won't open. Is this the beginning of a fatal drive