Include virtual

I have a J2EE webapplication with different JSP-pages. Some of the pages uses:
<!-- #include virtual="/inc/filename.jsp" -->
to include other jsp-files. When I deploy my application to Oracle9iAS and test it, the files included with the virtual-statement are not shown. Files included with the normal statement:
<%@ include file="filename.jsp" %>
are included. Can anyone tell me why the files included with the virtual-statement won't be included when I run the application?

I have a J2EE webapplication with different JSP-pages. Some of the pages uses:
<!-- #include virtual="/inc/filename.jsp" -->
to include other jsp-files. When I deploy my application to Oracle9iAS and test it, the files included with the virtual-statement are not shown. Files included with the normal statement:
<%@ include file="filename.jsp" %>
are included. Can anyone tell me why the files included with the virtual-statement won't be included when I run the application?

Similar Messages

  • Adding "include virtual" jumbles page

    I have designed a page (www.komenwv.org) and when I added a
    include virtual under the header (In The News) for my news program
    and then I look at the page in "show design view" and everything is
    jumbled. The background turns gray, my table are gone and my images
    are all over the page....but the page looks fine through a browser.
    When I remove that simple include virtual code, the page goes
    back to normal in the "show design view".
    What causes this and what can I do to make it look correct in
    the "show design view" mode?
    Thanks in advance.

    On Sat, 4 Aug 2007 02:47:17 +0000 (UTC), "MCInteractive"
    <[email protected]> wrote:
    > When I remove that simple include virtual code, the page
    goes back to normal
    >in the "show design view".
    The included file is a complete html page, including
    <html>, <head>, and
    <body> tags. That means you wind up with duplicates of
    those tags in the
    assembled page. An include file should be only the snippet of
    code that
    goes where the include is done.
    On a side note, you have built these pages as ASP/JavaScript,
    but saved
    them with a .html extension. In browsers other than IE, you
    get this at
    the top of the pages:
    <%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
    Gary

  • Pass-through cookie on include virtual

    I have an application where the web server servs up static html but uses an include virtual to access a URL which proxies a request to a jsp running on a WebSphere server. My problem is that the session cookie for the jsp is not being passed through to the browser Is there a way to make this happen?

    No, it's not possible to set a cookie from within an SHTML include. The HTTP response (which includes the Set-cookie: headers) has already been started by the time the include is processed.

  • Problem with variable name in ZXRSRTOP include (virtual KF)

    Hi all,
    I am coding a routine to use a virtual key figure in the BEx.
    I have just a little problem with the name of a variable:
    as explained in the documentation, I created the variable with the prefix G_POS_, the name of the infocube and the name of the infoobject all together:
    DATA: G_POS_BC_ST_003_C_DIV__C_COMPAR   type i.
    The problem is that this variable name is longer than 30 characters, so the system doesn't accept it.
    Is there a workaround, other than changing the name of the infoobject (which is a navigational attribute)?
    Any help would be appreciated.
    Loï

    Hello Marc,
    I understand that I have to use a concatenate function and a dynamic call of the variable with (variable) instruction, but i do not understand how to implement it.
    the infocube name is BC_ST_003
    the characterisdtic name is C_DIV__COMPAR
    So, in the include ZXRSRTOP the statement
    DATA : G_POS_BC_ST_003_C_DIV__COMPAR
    does not work due a length problem (see first post)
    But in the same include the statement
    +DATA: l_global_name type c.
    concatenate 'GPOS' 'BC_ST_003' 'C_DIV__C_COMPAR' into l_global_name separated by '_'.+
    drives to the following error : statement is not accessible.
    Could u please provide me with an example of the code in the include ZXRSRTOP, and in the include ZXRSRZZZ for the use of this variable.
    Thanks in advance.
    Loï

  • How to include virtual system in transport domain

    Hi all,
    I have my development and quality servers running on one instance.at the time of configuring STMS,i have made the transport domain and included both the systems.Also i have configured production system as the virtual system.Now i have installed the production system on a different host with a different transport directory and want to include this system in the transort domain.in a way the virtual system will be replaced.
    How should i do it.
    Regards
    Praveen

    Hi Praveen,
    If you want to include a system in your existing transport domain, just login into the system, in T-code STMS you will get a POP UP choose other configuration ,it will ask for-:
    System
    Description
    Target Host
    System Number
    Save the settings and wait for some time it will automatically added in your Transport Domain.
    Reward Points if find it useful.
    Thanks,
    Prashant.

  • Using all memory, including virtual memory

    For some reason Final Cut Pro 10.0.3 doesn't get past the loading screen, it's worked fine until yesterday - havent done any system updates, or program upgrades.  When I start the program, I can see the square that says FCP, and I can see the interface loading in the background, but it never comes out of that loading screen.  It uses all 18 GB of my memory, even after a restart, then it goes to my hard drive for more virtual memory.  I have 37 GB free, it uses all that and then 'pauses' according to my Force Quit screen.  I'm in a big rush to get this fixed - I work at a church, and this is the Friday before Easter, which is a really big weekend, and of course, people want to see these videos before the end of the day, or earlier....  Any help would be much appreciated!!

    Thanks innocentius.  I found the culprit, after much troubleshooting and help from Apple.  When I loaded Final Cut, the loading screen would always get stuck 'loading the 'easter' event'.  There was a PSD file in the easter event that I was working on yesterday that suddenly didn't like Final Cut.  In the PSD, I had created a very complex vector shape, and I think Final Cut was trying to render the vector without success.  But, it could have just been a corrupted PSD.  Either way, I went to the Final Cut Events folder, found the PSD, moved it somewhere else, and voila, everything is back to normal!

  • Need help with .asp Virtual Includes

    Hi,
    I am using;
    Dreamweaver 8
    Win XP Pro
    IIS6
    Virtual Directory Information in IIS:
    Local Path: C:\Inetpub\wwwroot\hseih
    Application Name: hseih
    Execute Permissions: Scripts Only
    Configurations>Options>Enable Parent Paths: Checked
    Read, Write, Browsing, Script Secure access, log visits,
    index this source: All Checked
    Dreamweaver Site Setup Information:
    Local Root: C:\Inetpub\wwwroot\hseih\
    Links Relative to: Site Root
    Server Model: ASP/VBScript
    Access: Local/Nework
    Testing Server Folder: C:\Inetpub\wwwroot\hseih\
    URL Prefix:
    http://localhost/hseih/
    Heres the code Im using in my index.asp file, where the
    footer.asp file is in the same directory.
    <!--#include virtual="/header.asp"--> or
    <!--#include virtual="header.asp"-->
    very simple, I believe I have everything setup correctly, and
    it should work. But I receive:
    Error Type:
    Active Server Pages, ASP 0126 (0x80004005)
    The include file 'header.asp' was not found.
    /hseih/index.asp, line 10
    However, it DOES work whenI add the root directory name into
    the include path as follows:
    <!--#include virtual="/hseih/header.asp"-->
    its like there's a setup issue somewhere, where IIS is
    misinterpreting the root of my site. When Im specifying to use the
    Site Root, and also the use of the "/" in the include path - doesnt
    that specify the root directory?
    Any insight would be greatly appreciate.
    Thanks!

    You web server configuration is what ultimately drives how
    your site is set
    up and how you navigate to all of your resources, whether
    they be include
    files, images, or what have you.
    Right now, the *root* of your web site, according to your IIS
    configuration,
    is c:\inetpub\wwwroot. This translates into
    http://localhost/. If you have
    your "hseih" folder within wwwroot, then it's a virtual
    directory, or
    subfolder, of the root. In other words,
    http://localhost/hseih/. So if
    you
    had a file in the "hseih" directory called "myfile.asp", then
    the path to it
    would be:
    http://localhost/hseih/myfile.asp.
    If, on the other hand, you reconfigure the web site in IIS to
    use
    c:\inetpub\wwwroot\hseih as the root of your web site as
    described in the
    configuration information I referred to earlier, the path to
    that same file
    would be
    http://localhost/myfile.asp.
    It's all a matter of telling IIS
    where the start of your web site is.
    The Local Root Folder config in the Local Info section of
    your site
    definition tells Dreamweaver where the files reside that
    you'll be editing.
    *Typically*, this lines up with the HTTP Address config in
    the Local Info
    section of your site definition. Not always, but most of the
    time.
    *Typically*, this also lines up with the URL Prefix in the
    Testing Server
    section of your site definition. Because you've got
    http://localhost/hseih/
    set up in the URL prefix *and* "c:\inetpub\wwwroot\hseih" set
    up in the
    local root folder everything is resolving correctly, because
    technically
    they're the same location. But, the thing to remember is
    "hseih" is a
    virtual directory within the site, it's not the root of the
    site (which is
    one level up from there).
    Any configuration URL that you set in your Dreamweaver site
    definition is
    pretty much there to tell Dreamweaver where to find things
    when it creates
    your preview pages, and other similar tasks. It's mostly
    there to make sure
    it builds links and references correctly for those functions.
    Once you have
    a grasp on those two items and know where the separate of web
    server and
    design tools occur, it makes a lot more sense.
    When you're working locally, which it sounds like you are,
    things are
    generally easier to configure because the local and remote
    info are the
    same. But when you begin working with outside web servers, it
    can get more
    complicated.
    Best regards,
    Chris
    "fmeenz" <[email protected]> wrote in
    message
    news:[email protected]...
    > chris -
    >
    > just reading your 2nd post about making the IIS root
    directory 'hseih'
    >
    > currently, my IIS local path for my virtual directory is
    set to
    >
    > Local Root: C:\Inetpub\wwwroot\hseih\
    >
    > is that not correct?
    >
    > when i browse
    http://localhost/hseih/ i do in
    fact see my index.asp page.
    > Its
    > the include files that arent working correctly. I am
    under the assumption
    > that, by adding a "/" to any reference -- link, image,
    include -- it
    > should
    > first start from the root of the site and pull from
    there. From what I
    > understand, I have set the root of my site to the hseih
    directory. please
    > correct me if im wrong.
    >
    > thanks
    > eric
    >
    >

  • Virtual includes and design view

    I am working on a redesign of our Intranet and have found a
    weird problem
    with the includes that I am trying to use. Our Intranet is
    located at
    http://swvtc06/swvtc (I understand
    that no one will be able to see it), the
    swvtc is a virtual directory in IIS. If I code my includes
    like this,
    <!--#include virtual="/include/nav.htm" -->
    Then I can see the included file in Dreamweaver, but when I
    execute the
    page, it gives me an error, "Include file not found". So I
    must change the
    include code to,
    <!--#include virtual="/swvtc/include/nav.htm" -->
    in order for the code to work properly. This however removes
    the included
    file from the design view.
    Am I missing something in the site setup?
    Thanks,
    Drew

    Drew
    Unless you are running off a properly configured IIS server
    it is often
    better to use FILE includes rather than Virtuals. The issue
    is that your
    intranet has been hung as a virtual directory off the default
    website found
    at localhost.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "Drew" <[email protected]> wrote in message
    news:ekpmrn$dq2$[email protected]..
    >I am working on a redesign of our Intranet and have found
    a weird problem
    >with the includes that I am trying to use. Our Intranet
    is located at
    >
    http://swvtc06/swvtc (I understand
    that no one will be able to see it), the
    >swvtc is a virtual directory in IIS. If I code my
    includes like this,
    >
    > <!--#include virtual="/include/nav.htm" -->
    >
    > Then I can see the included file in Dreamweaver, but
    when I execute the
    > page, it gives me an error, "Include file not found". So
    I must change
    > the include code to,
    >
    > <!--#include virtual="/swvtc/include/nav.htm" -->
    >
    > in order for the code to work properly. This however
    removes the included
    > file from the design view.
    >
    > Am I missing something in the site setup?
    >
    > Thanks,
    > Drew
    >

  • Contribute changing relative path for server-side include

    I am using Contribute CS3, version 4.1, and my pages crash
    every time a send a draft for review, because Contribute is
    rewriting a relative URL in a server-side include.
    The server-side include (before I send for review) reads:
    <!--#include file="../foo/bar.fileextention"-->
    After I edit other portions of the page and send the draft
    for review, it reads:
    <!--#include file="http:
    //www.servername.com/foo/bar.fileextension"-->
    Which results in the draft being unreadable.
    Is there any way to tell Contribute not to monkey with this
    URL? I have hunted, read the forums, checked the knowledge base,
    and coming up empy.
    Thanks in advance for any help you can provide!! I really
    appreciate it!
    -Nicholas

    Answering my own question.
    I researched this complete forum and with taking ideas from
    different posts, I was able to figure this out. I thought I would
    post it for anyone else needing to know the answer in one place:
    Include tags must read:
    <!--#include virtual="includes/fileName.html"-->
    (Include file is NOT a real HTML doc -- no tags in file
    except for CSS, as it would be used if not using Contribute.)
    No reference to .dwt needed nor Template created.
    No Edit instance tags needed anywhere.
    Contribute user navigates to page:
    [Upper right corner] Click Choose...
    [In my structure] User opens includes folder (double clicks)
    User selects THE file (clicks OK)
    User clicks on Edit Page button
    (Text is now editable.)
    User edits text.
    User clicks on Publish button.
    Worked for me several times trying.
    - Janet

  • How to make file folder structure from virtual folders

    lv 2013 sp1
    This is the layout of an example project, (please don't mind the horrible naming)
    When i create a source distribution.. no matter what settings I try, the preview is always like this:
    But I want the folder structure from the build to become as the virtual folder structure. is there any way of doing this without moving them by hand in the file explorer tab?
    Solved!
    Go to Solution.

    Unless you use auto-populating folders (which I don't like), the virtual folders are not meant to reflect the location on disk, so it certainly won't be automatic.
    I don't have experience with source distribution, but other build types have the option of configuring destination folders in the Destinations category and then assigning these destinations to items in the projects (including virtual folders, which then takes all the elements inside it) either in the same category or in the one under it, I can't check. I expect that you can do the same in a source distribution.
    Try to take over the world!

  • How to include html files in another html files?

    Hello,
    I am wondering if there is any way of including content (html code) inside another html page..
    I've tried:
    - iframe - it's working fine but IE7 doesn;t like it.
    I am looking for something similar with:
    - Server Site Include <!--#include virtual="/directory/included.html" -->
    but without to have to change the portal settings.
    Any idea?
    Thank you
    Anca

    HI did u try using the omniportlet? on Portlet builders

  • Side server include coding problem with multiple websites

    How can I use an address bar across multiple websites?
    When I access my web sites all the sites are in separate folders in the account, ie site1 folder, site2 folder etc.
    I placed the following code on a page in site2 <!--#include virtual="/NavigationBar.shtm" -->
    NavigationBar.shtm is in site1 folder which i think is referred to as the root folder.
    When I tested the code in a page in site1 it worked but when I tested it in a page located in site2 the following shows up where I want the navigation bar: [an error occurred while processing this directive]
    Is it possible for me to have a single ssi page in one location and have it apply to more than 20 websites all in separate folders?
    If it is possible, what code do I need to insert into a page that is not in the folder that has the ssi page?
    The test page that worked properly is http://gigharborrealestate.com/testssi.html
    The test page that failed is http://gigharborwashington.com/testssi.html
    One other question: The successful page online has all the code of the navigation bar file while locally it has <!--#include virtual="/NavigationBar.shtm" --> Should the page online show all the code instead of <!--#include virtual="/NavigationBar.shtm" -->?

    Hi Mike:
    I uploaded this file to the root of a domain named fearlessselling.net
    Here is its code which contains a call to an include file hosted on a DIFFERENT domain: workandpartners.com
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <table>
    <!--start FOOTER-->
    <?php require_once("http://www.workandpartners.com/footer.inc"); ?>
      <!--end FOOTER-->
    </body>
    </html>
    Click on http://www.fearlessselling.net/remoteSSI.php to see the display of the included text.

  • "Server-side includes" equivalent in DW CC

    I am a long-time HTML coder, having been hand-writing HTML since the days of Mosaic.  However, I am a complete newbie with DreamWeaver CC.  I have gone through the entire "Bayside Beat" tutorial.
    I am used to using "server-side includes" to include common sections of code on all of my pages.  For example, I include this at the top of every body:
    <!--#include virtual="/inc/banner.inc" --><!--#include virtual="/inc/mainmenu.inc" --><!--#include virtual="/inc/sidebar.inc" -->
    and this at the end:
    <!--#include virtual="/inc/footer.inc" -->
    Following along with the "Bayside Beat" tutorial, I see how to copy those sections from one page to another.  However, what happens if I need to make a change in one of those sections?
    For example, if I were to add a 6th page, I would need to edit the menu, and then manually propogate that change to every page.  Or, next year, when I want to change the copyright to "2014", I again need to manually edit every page.
    Is there any way to say "this section is to be identical on every page that includes it, and automatically propogate any changes to all of those pages"?

    I can't remember when Adobe loused this up.  Probably in DW CS6.
    My workaround is to create my own SSI code in my Custom Snippets folder.  I have one for .shtml/.asp pages and another for .php pages.  One click inserts the code. 
    <!--#include virtual="includes/my-include-file.html" -->
    <?php require_once('includes/my-include-file.php'); ?>
    Once inserted, click on the include statement in code view and you'll see a small properties box where you can browse to the actual file or Edit the include file.  It takes a lot longer to explain than it does to do it.   Bottom line, it's quick and you don't need any 3rd party extensions.
    Nancy O.

  • Dreamweaver Templates and Include files

    Hi,
    I am using dreamweaver templates so that my users can create
    new pages on our Intranet using Contribute.
    When I create a template and try and use an inculde file for
    the menu systems I get an error. I am trying to use the following
    code to inculde the asp file:
    <!--#include file="/includes/menu.asp" -->
    And I get the following error when saving the template:
    Unbalanced body tag
    I have checked and I definetly have opening and closing body
    tags in the HTML. So I am wondering whether the error is caused by
    the fact that the file is a dwt and not as asp.
    So, is there anyway of using include files in a dreamweaver
    template?
    Thanks in advance for any help.

    That's the wrong syntax for a file include. It should be
    either of these -
    <!--#include virtual="/includes/menu.asp" -->
    or
    <!--#include file="includes/menu.asp" -->
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Alan" <[email protected]> wrote in
    message
    news:C568040E.31895D%[email protected]..
    >
    >
    >> <!--#include file="/includes/menu.asp" -->
    >>
    >> And I get the following error when saving the
    template:
    >>
    >> Unbalanced body tag
    >>
    >> I have checked and I definetly have opening and
    closing body tags in the
    >> HTML.
    >
    > Is the include file JUST the html that would be correct
    syntax for where
    > it
    > is used in the main file?
    >
    > In other words- included files should not be complete
    html docs with their
    > own head and body tags. That would result in multiple
    head and body tags
    > in
    > the assembled files.
    >
    >
    > --
    > Alan
    > Adobe Community Expert, dreamweaver
    >
    >
    http://www.adobe.com/communities/experts/
    >
    >
    >

  • Dreamweaver previews first Server Side Include Only (SSI)

    Dreamweaver CC and 2014 preview the first Server Side Include (SSI) only, even if the Adobe extension is installed (Using the SSI extension in Dreamweaver to create page headers | Adobe Developer Connection)
    How do I set Dreamweaver to preview multiple (more than one) SSI's?
    Example Code:
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    </head>
    <body>
    <!--#include virtual="/content.shtml" -->
    <!--#include virtual="/content2.shtml" -->
    </body>
    </html>
    The code above will preview the text in "Content.shtml" but will not display the text in "content2.shtml".
    For troubleshooting purposes, I have reduced the content in each file to only single lines of basic text.
    Please advise. Thanks.
    Update:
    Dreamweaver Live View will show all of the server side includes. However the "Design View" and "Preview in Browser" will only show the one ssi.
    The following Preference settings are enabled:
    -Preview using temporary file
    -Show contents of included file
    Update 2:
    I discovered that server side includes have been removed from the Dreamweaver interface, inferred from this article: A Look at the Modernized Dreamweaver CC : Adobe Dreamweaver Team Blog. If Server Side Includes were removed, can they be added again using the Server Behavior extension?

    The issue is fixed in Dreamweaver 2014.1

Maybe you are looking for

  • T61p exhibiting 1 long and 2 short beep and black screen

    All, There have been multiple discussions over the past months concerning a 1 long and 2 short beep symptom on some T61 and T61p model systems.   Over the last several weeks members have begun to start additional topics on this theme and cross post b

  • Content presenter edit icon not appearing

    I am relatively new in this area ....I have an ADF application where i have the UCM connection defined. I expanded the UCM folders in the connection pallette of Jdeveloper and dropped an image from a folder in UCM repository as Content presenter task

  • Will it work with a monitor...

    will the new macbook air work with a monitor as I see it has a touch screen? This will be my primary computer as I like that it is small and light.

  • I cannot save data on a pdf on my tablet since most recent update

    I use Adobe reader on my Galaxy Note 8 to do audits. I fill in with forms with stylus. Since the update I cannot save any data to forms. The "Save" button, previously in upper right hand corner of screen, is gone. There is only a check mark on the sc

  • Open a CURSOR for a CLOB variable in 9i

    Hi Friends, I have a procedure which has a CLOB variable,and a sys_refcursor as inputs. procedure proc1 ( p_sql clob, cur1 sys_refcursor); I need to open this cur1 for p_sql clob. OPEN CUR1 FOR P_SQL; But it gives an error. I went through webs and fo