Server Side Includes with .irpt pages

I am intrested in using server side includes within my .irpt pages for example
<!#INCLUDE FILE="file.inc">
specifically inside of my applet tags to reference a standard set of parameters that I would like to be passed into my display templates.  Does xMII have a similar representation of server side includes for .irpt pages?

It might make your head explode, but in a good way...
Also, you'll need 11.5 or newer to run this. There are so incredibly many opportunities that this might open up for you to deliver not only static, but also dynamic embedded server-side content.
There are many aspects of xMII that are largely untapped.  A few common ones are the ability of the Runner servlet (which invokes xMII BLS transactions) to stream virtually any type of content back to the requestor (XML, HTML, text, images, PDFs, Excel, whatever).
The other feature that not too many people use is the ability to use an xMII BLS transaction as a "stylesheet".
Lastly, there is the little-known "<SERVLET>" tag that can be used in IRPT pages.
Put all these pieces together, and amazing things can be done.  The example I'm going to show you uses a BLS transaction, but it can also be done with an XSL stylesheet (if the desired included HTML is static).  But let's go for the cool approach...
Let's assume you have some "stuff", such HTML page content, that you want included in a specific position on your web page.  Let's also assume that this "stuff" resides in a file accessible at http://localhost/MyInclude.html (the file extension doesn't really matter).
Create a new BLS transaction with no inputs and an output of type String (the name of the output doesn't matter - but in our case, let's assume you name it HTMLOutput).  To workaround a cosmetic bug (which will be fixed in a future patch), you should also create a second output (doesn't matter what name or type) - so add one called "DummyOutput" of type String.  Not worth explaining why - just do it. 
Next, add either a TextLoader or HTMLLoader action (in the Web group) to your transaction (they both do the same thing, actually - just different icons).  In the Output links tab, assign the StringContent of the loader action to the transaction output.  This basically accomplishes the loading and streaming of your included "stuff".
Save this transaction.  Let's save it in a folder called CoolStuff, with the name IncludeTest.
In your IRPT page, add the following code where you want the "stuff" to appear.
  <SERVLET NAME="Illuminator">
       <param name="Stylesheet" value="xacute://CoolStuff/IncludeTest" />
     <param name="OutputParameter" value="HTMLOutput" />
     <param name="Output-Content-Type" value="text/html" />
     <param name="Content-Type" value="text/html" />
  </SERVLET>
Save the IRPT page, load it, and you're in business!
You can probably already start to envision to possibilities for adding more sophisticated business logic to create "dynamically" embedded content in your IRPT pages...
Best regards,
Rick

Similar Messages

  • Server Side Includes with Server Behaviors

    Is it possible to include pages that have server behaviors attached to them, or are these behaviors limited to pulling in just plain html from the included pages?
    For example, I want two pages, index.php and login.php.
    I want the login.php page to have all of the user login behaviors/links/fields/buttons/etc. and then Include that on the index.php page. Am I supposed to be able to do this using ADDT server side includes?
    I've been successful using server side includes to include static text on a page, but not dynamic content with behaviors attached. I'm not sure if I'm just have a mistake, or if this won't work in the first place.
    thanks!

    Hi,
    this is generally possible, as the included files sure can have their own server hehaviours -- did that several times, where the "container" page had about no server behaviours embedded, but the included file did.
    ADDT´s server side includes will, loosely said, basically just "dynamically" strip the included document´s "head", but leave other components like server behaviours untouched
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Server side includes with htp package

    I have a few procedures that call the htp package and generate dynamic web pages, however the server side includes are being treated as comments; they are not interpreted correctly and hence are not reading the associated file.
    Has anyone encountered this before and found a solution?

    I have a few procedures that call the htp package and generate dynamic web pages, however the server side includes are being treated as comments; they are not interpreted correctly and hence are not reading the associated file.
    Has anyone encountered this before and found a solution?

  • Server Side Includes not rendering correctly in Firefox with Layers

    Hi
    The server side includes are not correctly rendering with layers in firefox. From my site here:-
    http://www.osteriastecca.com/index.php
    the home_page.php content renders above a layer on the index.php page. Initially I thought this might be a Flash layer issue but the wmode is set correctly to transparent and it works fine with a normal ssi. It also works fine in Firefox without a server side include as you can see here:-
    http://www.osteriastecca.com/index_old.php
    Works fine in IE and Safari, but not Firefox.
    How can this be rectified?
    Regards
    Glennyboy

    What testing server setup do you have? Are you using something like WAMP?
    What do you see on screen which tells you the SSIs are not rendering? Any error message?

  • Tabbed with Server Side Include

    Has anyone had any problems adding Server Side Include to the Spry Tabbed Pannels, everytime the I add a SSI to the tabbed content is locks up the tabs.
    Where the hell are to get support is this an interAKT, ADOBE or your on your own.

    Hello,
    I don't have an answer to your problem, because I've never tried this approach.
    However, I can tell you that this is an USER-TO-USER forum. If you need to request technical support from Adobe, you need to go here:
    http://www.adobe.com/go/support/
    regards,
    Ionut

  • 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

  • Server Side Includes not displaying in DW CS3 design view

    I have this code in my page (see below):
    When I open the file in Dreamweaver MX 2004 in design view,
    the page displays correctly. That is, I see the correct styles from
    the style sheet contained in Head_Standard.html and the logo/menu
    in Logo_TopMenu.html
    When I open the page in DW CS3, I do not see the effects of
    the style sheet and I do not see the logo/menu.
    However, when I change the code for the first include from:
    virtual="/ServerSide
    to
    virtual="
    ../../ServerSide
    then the page renders correctly in Dreamweaver CS3.
    My first reaction was: what?! And my question is: how do I
    use a root reference inside the head and get it to display properly
    in DW CS 3?

    "Go to Edit > Preferences > Invisible Elements >
    Server-Side Includes (Check this box) to show contents of included
    file"
    I already do this.
    For me:
    /ServerSide... does NOT work
    ../../ServerSide... works
    So, a relative reference works and a reference to the root
    does not. I have over 20 websites with root references and I need
    this to work in DW9.

  • Server Side Includes

    I would like to create a website that allows the business owner to post information by simply updating a Word or Excel document and uploading it to the server.  I'm using a Server Side Include to bring in the .doc and .xls files.  It kind of works... I can see the data from these files, but the formatting is crazy and includes a bunch of extra characters.  I've set the extension as .shtml and selected "virtual" for the Apache server.
    I've searched the forums for an answer, but it doesn't look as this has been addressed.  Thanks in advance for you time!

    Ah, very good point.  I've actually tried that with some sample text and it shows up fine in my browser, but I had assumed that creating a page in Word or Excel wouldn't allow for the same level of functionality and aesthetic that I've created with the original page in Dreamweaver.  I will go ahead and play with Word to see what can be achieved.  Thanks and sorry for the newbie question!

  • Server Side Includes and Divs

    I have a template (dwt) for my site with editable regions for
    menus. I want to use Server Side Includes for the menu, as not all
    the pages will have the same menu.
    I have designed the site template (and pages) with css and
    divs. The area for the SSI is a div of size 145x335. The menu which
    I want to put inside this div will be a div based menu. I havent
    had any luck displaying the Div from the SSI yet. I have been
    looking on Google for help, but not much luck. I can get the Div to
    appear but the formatting doesnt show up.
    Im putting the SSI code in where I want it on the page, but
    im not sure exactly which code to get rid of in the shtml file. I
    know I need to remove body, head parts etc
    My site template uses CSS stored on the document, not an
    external css file.
    Any ideas?

    > Im sure Ive not got it right yet!! My head wont work
    lately!
    Yes. It's not working well here, either.
    Create your template with the editable region. In it, have
    links to a) the
    general stylesheet for all the pages, and b) the general
    stylesheet for all
    of the includes (these don't really need to be separate
    files). Spawn a
    child page, drop in the desired include, and save that page
    as
    whocares.shtml.
    That's it....
    The incude files themselves can be names anything you want -
    I like the
    'monkeybutt' extension, e.g.,
    yourinclude.monkeybutt
    The include files can make reference to CSS selectors, but
    cannot have
    embedded CSS rules, or links to external CSS files.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "~Billy~" <[email protected]> wrote in
    message
    news:eq234v$eq6$[email protected]..
    > Ive made myself confused now! I need it spelling out to
    me!
    >
    > Ok, a template file (dwt) with its css as an external
    style sheet.
    >
    > Rest of the sites pages made from the template file.
    >
    > Next, the template has one editable region for a choce
    of 2 div based
    > menus to
    > be placed into. Place either of these div menus into the
    template editable
    > region by creating two seperate SHTML files - one for
    each menu with the
    > body/head removed(and with internal or external css?)
    >
    > Next put the SSI code into the body of the template
    where I want the SSI
    > to
    > appear.
    >
    > Im sure Ive not got it right yet!! My head wont work
    lately!
    >

  • Server Side Includes for Apache and parsing text files

    I have an old website I used to do zipped up and I decided to set it up on my personal webserver in OS X . I got apache configured to allow server side includes (edited the httpd.conf to all them:
    <Directory />
    Options FollowSymLinks Indexes MultiViews Includes
    AllowOverride None
    </Directory>
    But I can't get the pages to come up. See I have this .shtml page which loads fine and a part of it has this line:
    <!--#include file="news/news.txt" -->
    But it won't parse that txt file and show the html that its formatted in.
    Anyone have any ideas on how to get it to parse that txt file? Even if I load just that txt file it shows raw code not it formatted. Please help.

    Ignore that first reply. I thought I was dealing with server.
    As usual, I fogot to make sure that Includes was in the Options directive for the DOCUMENT_ROOT or VirtualHost. After 10 years, you'd think I'd remember that. I just configged one of my macs to do SSI. Here's the 3 lines that I changed:
    Line 399 (the DOCUMENT_ROOT definition): Options Indexes FollowSymLinks MultiViews Includes
    Line 887 (To use server parsed HTML): AddType text/html .shtml
    Line 888: AddHandler server-parsed .shtml
    apachectl restart
    and off it went!
    Roger

  • Server-side includes not working

    Running CF9.x on Apache 2.2 Win 7.
    I inherited an older html multiple page site that we are breaking down into includes using html server-side includes:
    e.g. <!--#include file="includes/sidebar.html" -->,  and saving the page as a .html file, which is then <cfincluded> in a .cfm file.
    Is there a way to get <!--#include file="includes/sidebar.html" --> include working on a CF page? All I see is the contents of the page, but none of the sidebar.html, or header.html, etc.
    I know I could switch to cfincludes, but the boss LOVES to muck around with the html side of things.
    TIA,
    Doug

    I know I could switch to cfincludes, but the boss LOVES to muck around with the html side of things.
    All the more reason to do it, surely?
    But anyway...
    I've never used a server-side include, but it looks to me that they just load the file and return it at that position in the document.
    For CF code to be executed, the file needs to be REQUESTED, so it won't be a starter with server-side includes.
    Adam

  • Server side includes: outdated and not supported by host?

    I've been using SSI's for ages with no problem from any host. Recently I signed up with a new web hosting company, one of the more established ones in the Seattle area. They do not support SSI's and claim that using them is not safe and is not a modern approach to web design. They suggested I use a more advanced programming language to create my sites, such as ASP.NET (something I have no desire to do).
    Are server side includes outdated and no longer the way to do things? I find that hard to believe.
    -Jesse

    Are server side includes outdated and no longer the way to do things? I find that hard to believe.
    That language is from Microsoft who seem to think so along with Windows based hosting providers offering ASP.NET.
    IIS no longer comes with SSI installed by default. It has to be configured by the hosting provider.
    http://blogs.iis.net/robert_mcmurray/archive/2010/12/28/iis-notes-on-server-side-includes- ssi-syntax-kb-203064-revisited.aspx
    However, classic SSIs (in the sense of including static content from one page inside another) are still one of the most powerful, safe and flexible tools for managing repetitive page elements in any web page. Not to mention easy.
    ASP.NET has its own way of doing the equivalent of SSIs - and lots more beside but much of which does not interest web designers at this stage.
    http://stackoverflow.com/questions/894720/asp-net-equivalent-of-server-side-includes
    http://searchsoftwarequality.techtarget.com/answer/Alternatives-to-server-side-includes-fo r-ASPNET

  • "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.

  • Server-Side Includes in weblogic server 5.1

              Hi,
              I tried Server-Side Includes examples in weblogic server 5.1 thru .shtml file.
              I am able to load the .shtml file but its not loading the included servlet. But
              I am able to load the included servlet alone separately.
              Somebody can be assist me what I have to do?
              I am using WebApplication WAR structure for my application.
              ex: http://localhost:7001/esp/hellooWorld -- loading the servlet
              http://localhost:7001/esp/html/ServletInclude.shtml -- not loading servlet
              where 'esp' name of the WebApplication
              The .shtml file code is given below
              <html>
              <body>
              <servlet name=hellooWorld>
              </servlet>
              </body>
              </html>
              Looking forward for some help
              Thanks
              

              Your WebLogic doesn't know it's supposed to be doing server-side includes. Make
              sure you have .shtml registered/enabled - see the docs.
              Mike
              "Jyothi" <[email protected]> wrote:
              >
              >Hi Mike,
              >Thanks for your reply.
              >>What errors (if any) do you see in the log file?
              >Just coming up with blank screen. No errors reported in log file. Nothing
              >coming
              >in log file regarding the servlet.
              >>
              >>When you display the page in a browser, what does View -> Source show?
              >Just getting blank screen. If I see view source same source code coming
              >up. Here
              >is the view source when I view it from browser
              >**********************************************
              ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
              ><html>
              ><head>
              ><title>Including a servlet with SSI</title>
              ></head>
              >
              ><body
              > bgcolor="#FFFFFF"
              > link=#DB1260
              > vlink=#828282>
              >
              ><font face="Helvetica">
              >
              >
              ><p>
              ><servlet name=hellooWorld>
              ></servlet>
              >
              ></font>
              ></body>
              ></html>
              >*********************************************************
              >>Did you register the servlet?
              >Yes. I registered the servlet. Thats why if I load the servlet alone
              >I am getting
              >the output.
              >http://localhost:7001/esp/hellooWorld -> url used to load servlet alone
              >>
              >I hope this info helps to you to analyze my problem
              >
              >Thanks
              >Jyothi
              >>
              >>"Jyothi" <[email protected]> wrote:
              >>>
              >>>Hi,
              >>>I tried Server-Side Includes examples in weblogic server 5.1 thru .shtml
              >>>file.
              >>>I am able to load the .shtml file but its not loading the included
              >servlet.
              >>>But
              >>>I am able to load the included servlet alone separately.
              >>>Somebody can be assist me what I have to do?
              >>>I am using WebApplication WAR structure for my application.
              >>>ex: http://localhost:7001/esp/hellooWorld -- loading the servlet
              >>>http://localhost:7001/esp/html/ServletInclude.shtml -- not loading
              >servlet
              >>>
              >>>where 'esp' name of the WebApplication
              >>>
              >>>The .shtml file code is given below
              >>>-----------------------------------
              >>><html>
              >>><body>
              >>><servlet name=hellooWorld>
              >>></servlet>
              >>></body>
              >>></html>
              >>>--------------------------------------------------
              >>>
              >>>Looking forward for some help
              >>>
              >>>Thanks
              >>>
              >>>
              >>>
              >>>
              >>>
              >>
              >
              

  • Server-side includes in css

    I am trying to incorporate server-side includes for my nav.
    links. I created the website using css. I am able to preview the
    navigationals (with proper links when I hovered) with F12 iexlorer,
    but when I upload everything and view it from IE, Mozilla, etc.
    they aren't there. My left nav. is totally blank.
    I am very new to web making and learned what I could from
    internet sites. Here are examples of my ssi code:
    My index page has a php extension (index.php) and has this
    inserted for the include:
    <?php include("menu.html");?>
    menu.html looks like:
    <ul>
    <li><a href="index.php">Home</a></li>
    <li><a href="searchplans.php">Search Plans
    </a></li>
    <li><a href="modifydesign.php">Modify
    Design</a></li>
    <li><a href="designpricing.php">Design
    Pricing</a></li>
    <li><a href="purchaseplan.php">Purchase
    Plan</a></li>
    <li><a href="contactus.php">Contact
    Us</a></li>
    </ul>
    I know that my server supports ssi, because I previously
    created a very basic site (not using css) using shtm extensions and
    an includes folder. When I called them they said that they support
    php too, but thought it was a problem with my settings in
    Dreamweaver.
    If you have any advice, I would be very grateful. I am
    banging my head on this one.

    Be sure to upload menu.html to your server.
    HTH,
    Randy
    > <?php include("menu.html");?>

Maybe you are looking for