GAE/J is just servlets, so in a sense, your opinion can be more accurately
described as believing it should be part of the servlet spec. Either way,
filters allow you to do this easily (as you can see from the project) and
offer more flexibility and testability over Apache mod_rewrite.

On Thu, Jul 8, 2010 at 2:27 PM, John Denley <johnvden...@googlemail.com>wrote:

> Thanks Ikai, I guess its just that I didnt know what I needed to be
> searching for! :D this seems to be just what I needed.... (should really be
> core GAE technology though IMHO!)
>
> On 8 July 2010 20:32, Ikai L (Google) <ika...@google.com> wrote:
>
>> You'd write a servlet filter that matches on the regex, redirecting as
>> needed. A quick search turned up this:
>>
>> http://code.google.com/p/urlrewritefilter/
>>
>> I just searched for:
>>
>> servlet filter url rewriting
>>
>> http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=servlet+filter+url+rewriting
>>
>> On Thu, Jul 8, 2010 at 12:12 PM, John V Denley <
>> johnvden...@googlemail.com> wrote:
>>
>>> The reason I am asking this is because there seems to be a python
>>> solution for this as documented here:
>>>
>>> http://www.terminally-incoherent.com/blog/2009/05/11/google-appengine-url-rewriting/
>>>
>>> On Jul 7, 10:36 pm, John V Denley <johnvden...@googlemail.com> wrote:
>>> > I have an application where I want to simplify theURLfor the end
>>> > users
>>> >
>>> > so for examplewww.appname.appspot.com/demowould be redirected
>>> towww.appname.appspot.com/?id=demo
>>> >
>>> > currently Im doing this by using a .htaccess file on my hosting
>>> > company website so thatwww.appname.com/demois then redirected to
>>> > user.appname.com/?id=demo and I have the CNAME for the user subdomain
>>> > pointing to ghs.google.com which is managed within my googleapp to
>>> > point back atwww.appname.appspot.com
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google App Engine for Java" group.
>>> To post to this group, send email to
>>> google-appengine-j...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-appengine-java?hl=en.
>>>
>>>
>>
>>
>> --
>> Ikai Lan
>> Developer Programs Engineer, Google App Engine
>> Blog: http://googleappengine.blogspot.com
>> Twitter: http://twitter.com/app_engine
>> Reddit: http://www.reddit.com/r/appengine
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>



-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to