Re: URL Rewriting to base

2014-11-17 Thread Thiago H de Paula Figueiredo
On Mon, 17 Nov 2014 15:49:14 -0200, George Christman wrote: They are actually unique pages in the app profile/profileIndex profile/about however while rewriting the page links, I found it easier to just strip off profile/ rather than having to strip off profile/about/ just to get to the

Re: URL Rewriting to base

2014-11-17 Thread George Christman
They are actually unique pages in the app profile/profileIndex profile/about however while rewriting the page links, I found it easier to just strip off profile/ rather than having to strip off profile/about/ just to get to the two context parameters. I'm assuming the total number of pages will c

Re: URL Rewriting to base

2014-11-17 Thread Thiago H de Paula Figueiredo
On Mon, 17 Nov 2014 12:08:29 -0200, George Christman wrote: I ended up getting it working over the weekend, but boy does it seem like a hack. I used some of your work to help me get going such as SimpleLink, however I needed the parameters so I needed to complete the class. Yeah, my Sim

Re: URL Rewriting to base

2014-11-17 Thread Kalle Korhonen
Hi George, is there a convincing reason to use the same page for these two URLs? To get the same end result with tapestry-routing ( http://tynamo.org/tapestry-routing+guide), I'd create two pages and annotate them like so: @At("/{0}") public class Profile {...} @At("/{0}/{1}") public class About

Re: URL Rewriting to base

2014-11-17 Thread George Christman
I ended up getting it working over the weekend, but boy does it seem like a hack. I used some of your work to help me get going such as SimpleLink, however I needed the parameters so I needed to complete the class. I'll look into a second level cache as that seems to be a better solution than what

Re: URL Rewriting to base

2014-11-17 Thread Thiago H de Paula Figueiredo
On Sat, 15 Nov 2014 00:56:58 -0200, George Christman wrote: Example domain.com/profile/profiledomain to domain.com/profile I do stuff very similar to this in Eloquentia (https://github.com/thiagohp/eloquentia). See https://github.com/thiagohp/eloquentia/tree/master/src/main/java/br/com/

URL Rewriting to base

2014-11-14 Thread George Christman
Hi guys, so I've managed to find a someone challenging task. I'm creating profiles and I'd like to create profile domains and do a url rewrite so those domains appear directly after the baseUrl. Example domain.com/profile/profiledomain to domain.com/profile now the profiledomain will actually b