• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: base URL set in html head
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: base URL set in html head


  • Subject: Re: base URL set in html head
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 6 Feb 2008 13:59:46 -0800


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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >base URL set in html head (From: Greg Smith <email@hidden>)

  • Prev by Date: Re: Educate me on generics please...
  • Next by Date: Re: Educate me on generics please...
  • Previous by thread: base URL set in html head
  • Next by thread: WOPopup doesn't display the selection attribute
  • Index(es):
    • Date
    • Thread