Re: Short URL Generation
Re: Short URL Generation
- Subject: Re: Short URL Generation
- From: Lachlan Deck <email@hidden>
- Date: Thu, 27 Oct 2005 15:16:27 +1000
Hi there,
On 27/10/2005, at 2:01 PM, Greg Hulands wrote:
I am looking to generate short URL's that I have created for
mod_rewrite
I thought that was the idea of mod-rewrite. i.e., it translates urls
for you e.g., from external short urls to internal long ones. So if
you've set up your rewrite rules correctly, you shouldn't need to do
much else.
for direct actions. After reading the docs, it looks like I have to
create a subclass of WOContext and over ride the
directActionURLForActionNamed method and have a map from a direct
action class / method to a shortened url. I just wanted to ask to
see if this is the best way to achieve this.
If you want to customise the way that incoming requests are handled,
then you'd be looking at overriding WORequestHandler so that they are
directed correctly.
I've, for example, extended
com.webobjects.appserver._private.WODirectActionRequestHandler so
that I can call:
http://.../wa/SomeClass/action
where my direct action classes are named, for easy reference in the
project, like SomeClassDirectAction.java
with regards,
--
Lachlan Deck
_______________________________________________
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