Re: How to interact between static and dynamic pages
Re: How to interact between static and dynamic pages
- Subject: Re: How to interact between static and dynamic pages
- From: Chuck Hill <email@hidden>
- Date: Tue, 13 Jul 2004 17:57:28 -0700
See the WOSession methods to store this information in cookies instead
of the URL.
Chuck
On Jul 13, 2004, at 12:32 PM, George Domurot wrote:
Are you able to go back to static, then back to WO while maintaining
your session?
This is where I'm having a problem grasping this concept. If you have
multiple hosts and instances running, how do you take the direct
action request and make sure the guest is thrown back into the
appropriate host/instance/session?
-Geroge
On Jul 13, 2004, at 5:03 AM, Clive Roberts wrote:
Thanks again folks, as you said, it is easy.
I see it is possible to "wrap" a "wo" application and to interact
with "wa"
(DirectAction) pages. For interest I did the following.
1 The domain is eg www.mysite.com , the document root has a folder
www.mysite.com and a virtual host setting in
".../sites/ipaddress.www.mysite.com.conf" file on the server (simply
generated using the server tools). The application is in the
document root
at "/www.mysite.com/Webobjects/myapp.woa"
2 The static file "index.html" and associated site files are in
www.mysite.com
3 I added a link with href "/cgi-bin/WebObjects/myapp.woa" to
invoke the
application from the static pages (eg index.html)
4 I removed the RewriteRule from the virtual host conf, and
rebooted
Apache (You probably don't have such rules anyway!)
5 Tried the deployed website and it works fine.
regards, Clive
Removing that rule will let Apache serve from a static file that is
somewhere in your DocumentRoot.
That file would need links that include the full WO URL (or something
shorter served by a different RewriteRule).
On Jul 12, 2004, at 7:57 AM, Clive Roberts wrote:
Thanks all for your help, I understand a little better now , in
particular I
appreciate:
a) it is definitely not a problem to mix WebObjects projects with
static
pages in a Document root.
b) the WO pages accessed by the static site must be "DirectAction"s
-
does
this mean the application must be a DirectAction application, or is
it
possible to mix DirectActions and WOComponents in the WOApp?
A remaining area of confusion for me relates to the Apache Virtual
Host
settings and their part in resolving the first and subsequent
requests
for
pages. Currently the WebObject applications are served by apache
virtual
hosts each with a rewrite rule :
RewriteRule ^/$ /cgi-bin/WebObjects/www.mysite.com.woa [ L, PT ]
This ensures the document root file
/www.mysite.com/WebObjects/myApp.woa is
invoked.
I think you are suggesting that this rule should be altered so that
e.g a
normal index.html can be invoked and urls to .woa can be served as
well.
Have I got this right (I am no apache expert!)?
regards Clive
_______________________________________________
webobjects-deploy mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-deploy
Do not post admin requests to the list. They will be ignored.
_______________________________________________
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.