Re: SSI and WO (was Re: Mixing HTML & WO Pages?)
Re: SSI and WO (was Re: Mixing HTML & WO Pages?)
- Subject: Re: SSI and WO (was Re: Mixing HTML & WO Pages?)
- From: Chuck Hill <email@hidden>
- Date: Wed, 19 Nov 2003 21:07:01 -0800
At 04:38 PM 19/11/2003 -0800, Klaus Berkling wrote:
>Sorry to dig up an old thread.
>
Better that than to ignore the archives and start a new one! :-)
Its been a while since I've done this and I don't have the code at hand.
This looks mostly OK to me:
<!-- #include virtual="/cgi-bin/WebObjects/Test.woa/1" -->
I'd get rid of the /1 though:
<!-- #include virtual="/cgi-bin/WebObjects/Test.woa" -->
That, however, assumes that the main page contains the HTML that you want.
Having one application per HTML snippet seems wasteful. It would be better
to package them into direct actions and use includes like this:
<!-- #include
virtual="/cgi-bin/WebObjects/Test.woa/wa/calendar?userID=12345" -->
<!-- #include virtual="/cgi-bin/WebObjects/Test.woa/wa/header" -->
<!-- #include virtual="/cgi-bin/WebObjects/Test.woa/wa/dailyNews" -->
etc.
You might also need to specify the server, I don't recall if this is needed
or not:
<!-- #include
virtual="http://<hostname>/cgi-bin/WebObjects/Test.woa/wa/header" -->
Does any of that work for you?
Chuck
>On Friday, October 24, 2003, at 11:19 AM, Chuck Hill wrote:
>
>> Two possibilities come to mind:
>>
>> 1. Keep the pages as static HTML and use SSI to call direct actions to
>> return the page contents.
>
>I am trying to do the SSI call. In the .shtml page I always get 'No
>instance available'. When I call the application manually it works.
>
>Fails:
><!--#include virtual="/cgi-bin/WebObjects/Test.woa/1"-->
>(#exec call fails as well.)
>
>Works:
>http://<hostname>/cgi-bin/WebObjects/Test.woa/1
>
>I am still learning, so I am sure I'm missing something simple.
>
>Any thoughts?
>
>Thanks in advanced.
>
>kib
>_______________________________________________
>webobjects-dev mailing list | email@hidden
>Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>Do not post admin requests to the list. They will be ignored.
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.