Include the file dynamicly by file name

in my jsp,I want include another jsp dynamicly
<%@ include file="thefile.jsp" %>
thefile.jsp should be dynamic like:
<%=String filename=="thefile.jsp" %>
<%@ include file=filename%>
I know above is not working since file only take static name.
is there any way to include the file dynamicly by file name?

String path = "..."; // to the ressource to include
javax.servlet.RequestDispatcher dispatcher
          = getServletContext().getRequestDispatcher(path);
dispatcher.include(request,response);

Similar Messages

  • How to include the file name as an XML field

    Hi,
    I'm using a file adapter for process a flat file and convert it into an XML. Does anybody knows how to include the file name into an XML field.
    Ex.
    I process the file named <b>XXIMN21022007.txt</b> and I need an XML like:
    <MT_FILE>
    <field1></field1>
    <field2></field2>
    <field3></field3>
    <filename><b>XXIMN21022007.txt</b></filename>
    </MT_FILE>
    Regards
    Gonzalo

    Just go for dynamic configuration.
    Check the sender file adapter to write the filename in the header (as explained in Michal's blog) and then read that header in some mapping.
    U can use that even in simple message mappings.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
    Your code for the filename tag would be something like:
    <i>DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
        “http://sap.com/xi/XI/System/File”,
        “FileName”);
    return conf.get(key);</i>
    Regards,
    Henrique.

  • I can not download any files using Safari ? when I choose to download application file the URL include the file name and stop responding. Any help??

    I can not download any files using Safari ? when I choose to download application file the URL include the file name and stop responding. Any help??

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. The Guest login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled under Mac OS X 10.7 or later, you can’t boot in safe mode.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Can I include the FILE NAME when printing from Bridge?

    I'm a commercial photographer. I shoot with my camera tethered to a Mac laptop to view images immediately as I shoot. I use Bridge to view these images.
    As I shoot, we save the file by product name, and then print proofs immediately. I need to include the File Name on these prints. Is
    there a way for me to do this directly from Bridge? If not, can you think of a way using Photoshop? Or anything else? Lightroom?

    Guessing you are using Bridge CS4 you could use the Adobe Output module for
    this. It is reachable through a seperate workspace in the top menu right
    side or the left side top menu the icon most right.
    You can create different lay outs as a PDF with this but for you it should
    be one per page and select the filename (with or without extension). Just
    explore the posibilities. For CS4 you could use the updated Output Module.
    If on CS3 you could use the contact sheet script for Photoshop that in
    Bridge can be reached by the menu Tools / Photoshop / contactsheet. This
    contactsheet script is also usable for CS4, it is on the Goodies install
    disk for PSCS4
    As I shoot, we save the file by product name, and then print proofs
    immediately. I need to include the File Name on these prints. Is
    there a way for me to do this directly from Bridge? If not, can you think of a
    way using Photoshop? Or anything else? Lightroom?

  • Can I include the file names of images in the image itself?

    *How can I get the file names of images on each image (without entering them by hand)?*
    (I am bring 250 images into a Keynote document, with each image on its own slide. I want to have the file names of the images shown on each slide or image. This doesn't need to look nice.)
    (If I can't do this in Aperture, I also have Photoshop Elements. Is there a way to do that in Elements?)

    You can't do this directly via Ap3. There are plug in's i believe that make it possible. Maybe someone knows more? Allan

  • Right place to include the file name of an attachment

    Hi...
    I'm using SAAJ to include some PDF files into my web service response... I would like to know where to place the filename of the each attachment I'm sending since the client needs that name to save the attachments to disk.
    Thanks for the help..

    Just go for dynamic configuration.
    Check the sender file adapter to write the filename in the header (as explained in Michal's blog) and then read that header in some mapping.
    U can use that even in simple message mappings.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
    Your code for the filename tag would be something like:
    <i>DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
        “http://sap.com/xi/XI/System/File”,
        “FileName”);
    return conf.get(key);</i>
    Regards,
    Henrique.

  • How to include the file name in CV02N-change document in application field

    Hi
    Can anyone tell me what are the settings to be made in Document management system so that i'm able to change the application name(now if its an excel file its showing as excel file,instead of that,is it possible to change and give some name or description against that?)
    Suitable points will be rewarded.
    Thanks & regards
    Karthik.

    Hi Karthikraj,
    Do you want to change only in CV02N?
    i.e. only the description
    In Originals area below what you see are:
    <b>Appl</b>    <b>Application</b>      <b>Storage Cat</b>   then <b>Lock symbol</b>
    If you want to Change in "Application" just select and Right click on it you will see a details click on it and change the description you want ! thats it!
    If you want to change in "Appl." the you should follow the procedure what i told you previously.
    Try it both you will get any idea.(because i have done both, & its working fine)
    Regards
    Rehman

  • Can I print page information (i.e. the file name) on my printout in Reader XI?

    I can do it in Acrobat Pro,  but I don't see any way to do so in Reader.

    If you open the PDF in a browser (like Firefox or Chrome) the file path, including the file name, will print at the top of the printout. I'm unaware of a way to do it with Reader, but someone else may know how.

  • Can I display the File name at the bottom of the Grid view window?

    Dang.  I'm probably going to catch some flak for this... but I can't find where this bone is buried.  When the main viewer is in grid mode, the bottom of the window says "1 selected - 9 items displayed" or something to that effect.  Is there a way to replace that with the name of the file(s) that is currently selected?
    I have searched the manual and tried many of the Metadata display options and can get all kinds of info to show up when double clicking to bring that image full screen.  But I'd like to see its name when simply selected in the grid view.
    Obviously that info is available in the Info pane to the left.  But when doing basic organizing, I like to leave that side on the Library pane.
    Screen grab for the situation I am talking about:
    Thank you!
    Bo

    Bo,
    I have no idea, if it would be possible to change the caption in the line below the grid.
    But why not add the filename of each image to the grid view like this?
    Edit the metadata for the Gridview (expanded or basic) to include the "File name" and arrange the display order to show the Filename first. This way you will see it bleow each image.
    Another way to alway see the filename would be to set the Metadata Tooltip to include the filename, and to enable the tooltip, when you are using grid view.
    Regards
    Léonie

  • Is there a way to list all the file names (automatically) in a folder to dynamic text box?

    Hi,
    I would like to know whether FLASH AS3 has some option to get all the files names from a folder specified and show it in a dynamic text box? Whenever some new files added to this folder it should update the list accordingly.
    Thanks for any information in this regard.

    Not particularly experienced in this field myself, but I've found its just easier to implement an XML file which lists the contents of the folder. It just means that when you upload a new file you have to add it to the list in the xml file also. No real hardship once you figure out the mechanics of it

  • Should the web page address be included in the file name in the meta data dialog box?

    In the page properties > meta data > below is a field with the label file name: (the the area to type in the field), after the field, it is labeled .html.
    I have 2 questions here.
    1. If I type in http//:www (my page url), do I include .html at the end? I didn't know if this is automatically added because it is off to the side of the field?
    2. If I type in the entire URL address: http//:www (etc, etc).html,    after closing the page properties dialog box, I make it a habit to double check my work. What happens is the http//:www.xxx changes to (htttpwww.xxx). It drops the //: on the URL.
    So would it be better to just type in www.xxx (without the http//:www.xxx)
    and do you type in the .html at the end?
    I am assuming this will help with SEO page ranking or at least makes it easier for the search engines to crawl your site??
    I hope this makes sense.
    Advise would be very helpful.
    Ben

    You are absolutely correct with the URL Ben. Taking your above example, you just need to type in "Services" in the file name and the webpage will be exported as services.html and the URl will be  www.xyz.com/services.html.
    All the webpages (be it parent page or child page) gets physically saved at the root directory of your website on the server (where your website resides).
    This name is just the name of the file using which it is physically stored and called from the server. It does not help search Engines to crawl deeper inside the website.
    As I explained, "name which you wants the .html file to be stored with" here means the name of the physical file which is getting saved on the server.
    Most users leave the file name same as Page name. If you have it different from page name then this will be the workflow :
    Page Name : About
    File Name : test
    domain : www.mysite.com
    Now if you are  using a Menu Widget, it will list "About" in the Menu. And when end user will click on "About" then it will call the file named "test.html" from the server location (where all the files of your website are stored).
    And it will open a page with address "www.mysite.com/test.html"
    Hope I am able to explain the concept of File Name here. Please let us know if you have further queries on this.
    Regards,
    Sachin

  • Parametricizing the file name in the jsp directive %@ include file=

    Is there any way to parametricize the file name in the above directive. Am not too keen on using
    <jsp:include ..
    because of performance issues and also i am only including a static HTML issues.
    Any responses would be appreciated?

    Nope.
    The <%@ include %> occurs at the time of translating/compiling the jsp into a servlet. It thus cannot accept any runtime parameters.
    Are the performance issues of using <jsp:include> that large?

  • When bates numbering a .pdf in XI, how can I change the file name to include the bates number AND its name?  I know under file output, there is an option for either/or.  I want both.  Thank you.

    when bates numbering a .pdf in XI, how can I change the file name to include the bates number and the file name?  I know under "file output: it's either/or.  I need both.  Thanks!

    Long ago I wrote a little demo using the touch command. Check out the following thread:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=25128#M25128
    LabVIEW Champion . Do more with less code and in less time .

  • Include Flat file name as a field in the PSA / DSO.

    Hi,
    I have a requirement to include the Flat file name also in the DSO which is used for loading the data from a flat file source. I have created a new infoobject for File Name in the DSO. Can you guide me from which table I can get this information.
    I was thinking of reading this information from the table which stores the file name in a routine in the transformation to the DSO.
    I came across the table RSLDPSEL, it stores the Infopackage name and file name. But this does not work when I am using the same infopackage to load multiple files. Thanks in advance.
    Regards,
    Hari.

    Hi,
    The main challenge is to get the Technical name of the infopackage in the transformation ( field routine) from PSA (Datasource Source) to DSO for the Filename info object.
    Is there any table which stores the Infopackage and the corresponding data target information in BI 7.0 sothat I could use the field routine in transformation to get the Infopackage ID based on the data target (DSO) ?
    Once I have the technical name of the Infopackage, my logic is to query the RSLDPSEL table and find the file name based on Infopackage ID.
    Please share your thoughts on how this scenario could be realised.
    Thanks,
    Regards,
    Hari

  • Dynamically assign the file name for "on demand read"

    Hi.
    A quick question.
    I need to poll a directory using the on demand read function of the FB component, and change the file name in the BPEL process.
    Basically I need to dynamically overwrite the destination file name at runtime.
    These are the steps in my Process
    1. Pick up XML file,
    2. Assign a field in the xml file (fileName) to a variable (flatFileName)
    3. Poll a specific directory using onDemandRead and look for the fileName specified in the variable
    So obviously,
    I have tried to assign the variable flatFileName to the fileName property in the FB component of the readout variable. But it doesn't seem to work.
    Firstly I want to know if this is possible, and secondly, any idea on how to solve this issue.
    Thanks in advance

    I think it is not possible. becuase the date & time added at runtime. so if you check the table  PATH you can find filename and their definitions

Maybe you are looking for

  • Logged Changes in Infotype Data

    Hi, In which table can I find old field data?? When I use program: RPUAUD00 I get a list with OLD and NEW data..So I need to find table where OLD data is stored? TNX! Adibo.

  • Ctrl+V on a JTable

    What method is called when I press Ctrl+V after selecting a row on a JTable? I tried using the copy() method which works on a text area/field but it doesn't work on the table. Ctrl+V works, but calling the copy() method doesn't.

  • Using API to download the webi document in the XML format

    I am just trying to use this API to download the webi document in the XML format. I need a sample XSL file which we can use to download the XML in a formatted output. http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/en/RE_SDK/resdk_java_d

  • Web Camera initialization failed. Satellite L655

    i bought my laptop a month ago and got this message "web camera initialization failed. please check your camera device and restart application or computer" done reinstalling drivers done disabling and enabling webcam on BIOS my device manager doesnt

  • Connection to server failed when selecting continue search on server

    Hi, I have a client that has an Exchange 2007 server and is having problems searching emails on their iPads (and iPhones). When they search and then hit continue search on server, it will come back with a "Connection to Server Failed" Client claims t