On Feb 6, 2008, at 1:36 PM, Greg Smith wrote:

I am wrapping my WO page with header, nav, and footer I pull from some other location as a function of the particular application and page running. The static links in the files I pull over are relative and therefor they do not work in my application. To make these work, I set the base url in the head of my pages and this worked as desired.

<BASE HREF="http://otherserver.domain.sub/path/toothersite/";>

However, this also changed the URLs for my forms and wohyperlinks. So the WO application did not working any more. I had assumed that these links created by the WO app where absolute and including the server domain. This is not the case.

Does anyone know how to set it so the form links and wohyperlinks are absolute and hopefully are the current server the app is running on?

I have no idea what problems this may cause, but you can try it and see what happens. Add this to Application.java:

public WOContext createContextForRequest(WORequest aRequest) {
    WOContext context = super.createContextForRequest(Request);
    context._generateCompleteURLs();
    return context;
}


Chuck


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to