Real challenge. dynamic ssi not possible? Help!

I'm trying to reference static html pages from my pl/sql generated web pages without using frames. I can't seem to come up with any way to do this. Here's what I'm trying to essentially to do.
filename below is a static html page being referenced.
PROCEDURE onDemand
(filename in varchar2) IS
BEGIN
PageStart;
PageHeadbar;
PageNavbar;
htp.p('<table>');
htp.p('<tr><td>');
htp.p('<p>When This is working, the contents of the file <b>'||filename || '</b> will be included.</p>');
htp.p('</td></tr>');
htp.p('</table>');
PageEnd;
END onDemand;
The options I CAN'T use are:
1. Using utl_file to grab the contents of the file from that directory.
2. XML url referencing.
I thought maybe I could use the server side include option, but I don't see how I can integrate ssi with the mod_plsql output. I know I can compile a static html file as part of a psp compilation, but then it's completely embedded in the resulting procedure and I won't have any dynamic options.
One solution that may work but we're trying to avoid, is to load all the existing html files into tables and just pull them out at the time of the procedure is called. Still, we'd like to avoid this and use the existing html files in the directories that they are in.
Here's one possible option I was considering but am not sure how to make it work.
I was thinking I could make my procedure that I'm calling part of a package and name the procedure .shtml. When I call the procedure it produces the web page which will have a server side include command in it that would reference the file I need. If I can get the apache server to then run the results of the mod_plsql through the mod_include module, it would hopefully then pull in the file I was trying to include. Is there any way that this might work? Here's the package body of what I'm trying with this option.
create or replace package body ssi as
procedure shtml (filename in varchar2)
is
begin
PageStart;
PageHeadbar;
PageNavbar;
htp.p('<table>');
htp.p('<tr><td>');
htp.p('<p>When This is working, the contents of the file <b>'||filename || '</b> will be included.</p>');
htp.p('<!--#include virtual="../html/en/'||filename||'" -->');
htp.p('</td></tr>');
htp.p('</table>');
PageEnd;
end shtml;
end ssi;
If it would work, I'd call ssi.shtml?filename=example.html, the procedure creates the web page to be generated via the mod_plsql module, but then the mod_include module parses the page and pulls in the example.html.... is this possible? What would be the necessary configuration of the apache server to do this?
There has to be a better way. Any ideas would be much appreciated.
Kurt
[email protected]

This is a big reason to make the move to dynamic development. There are many sites that use PHP or CF and never connect to a database. The ability to have your menus, headers, footers added to your pages with one simple line of code such as:
<cfinclude template="FooterContent.cfm">
for ColdFusion or
<?php
include("FooterContent.php"); 
?>
for php
Makes it well worth moving from static HTML pages to using  CF or php.
Even if your host did support SSI's  you'll find true dynamic development to be a much more reliable solution - and this isn't even mentioning how to handle form submissions and so many other non database related functions... for example  this line of code
Copyright 2002 - <cfoutput>#DateFormat(Now(), "yyyy")#</cfoutput>
Will automatically show the current year at the end of your copyright statement in your footer - sweet, right?
Hope this encourages toy to make the move.
Lawrence Cramer - *Adobe Community Professional*
http://www.Cartweaver.com
PHP & ColdFusion Shopping Cart for Adobe Dreamweaver and code developers.
Stay updated:
http://www.facebook.com/cartweaver
http://www.twitter.com/cartweaver
http://blog.cartweaver.com

Similar Messages

  • IPhoto update can't be installed on my MAC ref. "This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled." this is not possible help?

    Recent upgrade to OS X Yosemite on my MAC and iPhoto update can not  now be installed msg reads, "This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled." this is not possible help?

    That error message can be misleading. It means, that iPhoto on your Mac is not associated with your Apple ID.
    Either you did not set up  your Mac using the same Apple ID - did someone help with your setup and use a different ID? Perhaps a family member? Or did you let someone borrow your installer disks?
    Or did you not yet "Accept" iPhoto and other iLife apps to your Apple ID? Check the "Purchased" tab of the App Store, if any applications are waiting to be accepted. If you see "Accept" buttons, press them.
    You may  be unable to "Accept" now, if you missed the update to iphoto 9.5.1 on Mavericks. You could try to buy iPhoto, however. If you are lucky, it may show for free.
    Backup your iPhoto library, if you do not have a current backup.
    Uninstall iPhoto by deleting it from the Applications folder, but do not empty the Trash, so you can put it back,if need be.
    Launch the App Store, click the "Store" menu, and sign in with your current AppleID.
    Open the main page "Featured" of the App Store and search for iPhoto.
    If iPhoto is listed as "Free", click the "Free" button to buy it with your current AppleID.
    If it is not showing as free, there is no help but contacting the App Store Support to sort out the AppleID. Use this link: http://www.apple.com/support/mac/app-store/contact/

  • Roll-up not possible - Help

    Hi,
    COPA delta load is successfully loaded in to the data target, some how i am getting the following error message and Roll up failed for the last two times.
    Roll-up not possible; no filled aggregates available
    Issue happend in Production, Could you please help me, to complete the roll up for the last two requests, which is loaded without any error into the target.
    Thank You
    Senthil

    Hi Raj,
    Sorry, There is an aggregate available for the data target and half a million records loaded to the target in the past two requests.
    Anyway thanks.

  • 16:19 to QuickTime, not possible- Help

    Hi there, I've just edited a sequence using the Anamorphic DV PAL preset. now Now, I'm unable to get 16:19 quicktime movie, No matter what codec i use, I'm always getting a 4:3 QT movie!
    Am I missing something here?

    Where is the final destination of your movie?
    Web?
    DV tape?
    Theater?
    Why do you want to save it on your HDs as 16:9?
    These are very important questions!!!
    If you are saving it for the web... here's what I suggested above:
    1) File
    2) Export
    3) QT COnversion
    4) Format: Quicktime Movie
    5) Use: Broadband - High
    6) OPTIONS
    7) SIZE
    8) USE CUSTOM SIZE
    9) Enter in your custom size.
    Good luck,
    CaptM

  • When i open iphoto i see my photo's for 1 second and then they are gone .The photo's are still there but i can see them only on the bottom or top of my screen when i try to open them i get a sign that it is not possible.Can somebody please  help me?

    when i open iphoto i see my photo's for 1 second and then they are gone .The photo's are still there but i can see them only on the bottom or top of my screen when i try to open them i get a sign that it is not possible.Can somebody please  help me?

    Have you upgraded to iPhoto 9.6 for compatibility with Yosemite? If not, try that first.
    It looks like iPhoto has lost the connection between the thumbnails and the original image files.
    This can be caused by a corrupted iPhoto library, or the originals have been deleted or moved.
    Try first to rebuild your iPhoto Library:
    If you do not have a current backup of the iPhoto library, make a copy of the library, but do not overwrite any previous backup.
    Launch iPhoto with the ⌥⌘-key combination (option-command) held down.
    Select "rebuild" from the first aid panel.  This may take a while for a large library.
    Can you now see your photos again?
    If not, rebuild the library with iPhoto Library manager as described by Old Toad:            Re: iphoto crashed

  • Is there any way to sync Outlook for Mac with iPhone? I have tried everything but not successful. Apple says it is not possible to sync contacts from Outlook for Mac to iPhone 5. Any help will be much appreciated.

    Is there any way to Sync contacts from Outlook for Mac to iPhone 5? Apple support says that only iTune can only sync contacts from "Contact" which is the default contact of Mac. If one is running Outllok on a Mac machine then it is not possible to sync the contacts with iPhone. It is strange that Apple distributors are promoting and offering machines with promise that Windows users can now run MS Office on Mac machines without any problem. While this is true, it is so strange that one cannot sync the contacts from MacBook Pro to iPhone5. If someone has found a way to sync contacts from Outlook to iPhone 5 please help as it is very frustrating to not be able to sync the contacts. Thanks, Amit.

    SEARCH!!!
    http://lmgtfy.com/?q=sync+outlook+mac+to+iphone

  • HT201210 i tried to jailbreak my ipod 4g 6.0.1(523) but was not possible. now i cant restore it becouse say i cant restore my ipod error 3194. i try to edit hosts on win32 but was unsuccesfully. anybody help me please :(((((

    i tried to jailbreak my ipod 4g 6.0.1(523) but was not possible. now i cant restore it becouse say i cant restore my ipod error 3194. i try to edit hosts on win32 but was unsuccesfully. anybody help me please :(((((

    Jailbreak discussion is not allowed in forum.
    And you have learned the risk of jailbreak.

  • At RWB, get "SSO is not possible", please help

    At the http://host:port/rep/start/index.jsp, click RWB, on the second
    screen, click "configuration", I get "Single sign on is not possible".
    Would you please shed some light how to fix it?
    Points guaranteed, thanks!

    Hi,
    This SAP note may help u- 757373, 768456
    Regards,
    moorthy

  • Can some one please help i am trying to get my icloud to transfer to my personal computer i have the iphone5c and 7.2.1.opp is this not possible i just need to check my texts and stuff cuz my phone is dead and in the desert tthanks?

    help me sync my iphone5c to my laptop its a hp and not a mac is this not possible I just want my computer to be my back up phone I have 7.1.2.op thanks yall?

    You need your phone present in order to back it up, sorry.

  • HT1386 please help me to make synch between my computer and iphone , on the file tab it is not possible to click, thanks

    my dear,
    please help me to make synch between my computer and iphone , on the file tab it is not possible to click.
    appreciate your help and thanks in advance.
    regards
    hesham

    You can't
    Apple has never approved a method to downgrade iOS
    Allan

  • Hi guys, I recently got a new MacBook Pro with a USB Superdrive. A disc won't eject, does anyone know of a way to eject it? I'm in Morocco for the next 10 days so going to an Apple store is not possible. Any help would be gratefully received, thanks

    Hi guys, I recently got a new MacBook Pro with a USB Superdrive. A disc won't eject, does anyone know of a way to eject it? I'm in Morocco for the next 10 days so going to an Apple store is not possible. Any help would be gratefully received, thanks

    Five ways to eject a stuck CD or DVD from the optical drive
    Ejecting the stuck disc can usually be done in one of the following ways:
      1. Restart the computer and after the chime press and hold down the
          left mouse button until the disc ejects.
      2. Press the Eject button on your keyboard.
      3. Click on the Eject button in the menubar.
      4. Press COMMAND-E.
      5. If none of the above work try this: Open the Terminal application in
          your Utilities folder. At the prompt enter or paste the following:
            /usr/bin/drutil eject
    If this fails then try this:
    Boot the computer into Single-user Mode. At the prompt enter the same command as used above. To restart the computer enter "reboot" at the prompt without quotes.

  • HT4061 i already restored my iphone succesfully using an itunes on my desktop, my iphone restarts and to configure language,country etc.unfortunately, activating my iphone is not possible itunes told me to insert a sim but my  simcard was inserted...help

    i already restored my iphone succesfully using an itunes on my desktop, my iphone restarts and to configure language,country etc.unfortunately, activating my iphone is not possible itunes told me to insert a sim but my  simcard was inserted...help me pls.

    Most likely, your phone was previously hacked to carrier unlock.  When you restored the phone, the hack was removed and the phone re-locked to its original carrier.  It now will recognize only the SIM card from that carrier, and can be used only with that carrier.

  • How do i set up a PS3 controller with my mac?Before anyone says its not possible, it is, I've done it before but it now asks me for a passcode and i can't guess it and don't know it, please help

    Before anyone says its not possible, as ive been told many times before, it is, I've done it before but it now asks me for a passcode and i can't guess it and don't know it, please help

    if it keeps asking for the password again just write "0000", add the controller to your favorites, close bluetooth before asked for a password again, and the open bluetooth again

  • It seems not possible to create this kind of "Brush" in Photoshop CS6, can anyone help?

    I found this website.
    http://newhive.com/andrew/drawonme?q=%23All%2F
    And I thought this "brush" is a  really cool technique for fast sketches. But it does not seem possible in photoshop, does it? I tested it with CS5 and even the new CS6 Brushes.
    Thanks for any help

    If I understand correctly the »thing« about this Brush is that it creates individual lines that interact with existing strokes by fanning them out when in proximity to an existing path.
    I think this is not possible with a Brush in Photoshop what with it being a pixel oriented application (with some vector functionality, though, fortunately).

  • Transaction type 100 not possible (posting to affiliated company)

    Hi All SAP Guru's
    I am trying to post asset acquisition through F-90
    Asset Dr Transcation Type 100
    To, Vendor Cr
    while saving the above document  i am getting an error Transcation type 100 is not possible (Posting to Affiliated Company)
    to explain further my client are using Trading Partner Concept, may be that is the reason document is not getting posted
    In Transcation Type I tried to change Post to affiliated Company then system allowing to post the document, but in real sense we should not give post to affiliated company at Transcation Type
    can anybody help, is there any alternative to go ahead
    Regards
    Sreenivasulu
    Edited by: sreenivasulu VAS on Feb 26, 2009 1:57 PM

    Hi,
    When there's a trading partner in the document, you need to use a different transaction type for external acquisition.
    Have you tried this? (I've used this one. without chaging document type setting)
    150     Acquisition from an affiliated company
    Difference from Transaction type 100 is posting type. 150 has a posting type of 'Post to affiliated company' whereas 100 has not.
    Check with IMG (T-code: AO73)
    Heeseon.

Maybe you are looking for