Hi Andreas,

That is very very slick.  Thank you, I now understand.  ;)

Cheers,

Levi


Andreas Andreou-2 wrote:
> 
> Hi, see http://tuckey.org/urlrewrite/manual/2.6/ (i see they also have
> a 3.2 version)
> Just define some outbound-rules (instead of rules) for the cases
> you're interested, i.e.
> 
>     <outbound-rule>
>    
> <from>^/app/category/product/([0-9]+)?venue=([a-z]+)&locale=([a-z]+)$</from>
>     <to>/app/$2/$3/category/product/$1</to>
>     </outbound-rule>
> 
> 
> On Fri, Feb 6, 2009 at 12:14 AM, xfile80303 <l...@grokers.net> wrote:
>>
>> Hi Andreas,
>>
>> Oh, please don't mistake me for an expert on T5 by any means.  :)  I just
>> don't see how the filter you mention would help with links generated by
>> T5.
>>
>> For instance, let's say I put the filter in place, and I give a user the
>> URL
>> to access the site:
>>
>> /app/venue_name/en_US/category/product/UUID (fill in with imaginary
>> actual
>> values, if you will)
>>
>> The filter could strip out the venue_name, locale, whatever and put them
>> as
>> actual parameters to the URL... something like:
>>
>> /app/category/product/UUID?venue=venue_name&locale=en_US
>>
>> And the URL would get passed in this way to T5 and the page would render,
>> no
>> problem.
>>
>> However, once on the page, let's say there's a link to another product.
>> That link URL would be generated by T5 and look something like:
>>
>> /app/category/product/UUID2?venue=venue_name&locale=en_US
>>
>> and thus, a user will see this, bookmark it, send it in email to friends,
>> etc. instead of the "nicely" formatted URL that we started with.  So the
>> filter only makes it possible to map "published" URLS to something T5 can
>> understand, and does not allow us to filter "outgoing" URLs to change
>> them
>> back to "nice" ones.
>>
>> Does it?
>>
>> Cheers,
>>
>> Levi
> 

-- 
View this message in context: 
http://n2.nabble.com/-T5--URL-Manipulation-tp2276010p2284959.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to