• 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: Webobjects-dev Digest, Vol 5, Issue 1137
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Webobjects-dev Digest, Vol 5, Issue 1137


  • Subject: Re: Webobjects-dev Digest, Vol 5, Issue 1137
  • From: Johnny Miller <email@hidden>
  • Date: Fri, 21 Nov 2008 10:58:52 -1000

Thank you for that concise and riddle free answer!

You are correct it's _rewriteURL and thank you again for that gem.

However, I'm working off the documentation found here: http://webobjects.mdimension.com/wonder/api/er/extensions/appserver/ERXApplication.html#_rewriteURL(java.lang.String)

I've loaded the prescribed changes into my properties file but they don't seem to be having any effect i.e. the urls are not being rewritten to /appname they are still /cgi-bin/WebObjects/AppName.woa.  

The application is of type ERXAjaxApplication and in the application's constructor I set the context class to type ERXAjaxContext.

Is there another step I'm missing?

Thanks in advance,

Johnny


On Nov 21, 2008, at 10:12 AM, email@hidden wrote:

Message: 2
Date: Thu, 20 Nov 2008 20:48:49 -0500
From: Mike Schrag <email@hidden>
Subject: Re: URL for WebObjects?
To: WebObjects Development <email@hidden>
Message-ID: <email@hidden">email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

I'd like to be able to just auto-magically generate the the  
hyperlinks with Wonder and then use apache to translate these urls  
back to something the WebObjects CGI adaptor understands.
Wonder implements this at a lower level and rewrites ALL urls rather  
than requiring you to use custom components to do it.  You can either  
use the simple interface where you can specify a regex pattern and  
replacement (for the common case of ripping off the /cgi-bin/ 
WebObjects/AppName.woa, for example) or you can override (I think) the  
_rewriteURL in your ERXApplication subclass (maybe it doesn't have an  
underscore -- i'd have to look it up) method and implement a more  
complicated ruleset.  This must together with a set of inverse rules  
implemented with (for example) Apache mod_rewrite.  Wonder rewrites  
the URLs that your app generates, mod_rewrite takes those URLs and  
turns them back into normal WO urls.

ms

 _______________________________________________
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

  • Follow-Ups:
    • Re: Webobjects-dev Digest, Vol 5, Issue 1137
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Re: deploy WO 5.3 on OS 10.5
  • Next by Date: Re: Webobjects-dev Digest, Vol 5, Issue 1137
  • Previous by thread: Re: how to set WOLips (veogenerator) parentClassName?
  • Next by thread: Re: Webobjects-dev Digest, Vol 5, Issue 1137
  • Index(es):
    • Date
    • Thread