Re: Mount different page for second parameter

2009-09-08 Thread Daniele Dellafiore
I think right now the only way is to use MixedParamUrlCodingStrategy Mount a page this way: > mount(new MixedParamUrlCodingStrategy("collection", CollectionPage.class, new > String[] { "owner" })); so CollectionPage is mounted at: http://localhost:9090/collection/ now in CollectionPage.java you

Re: Mount different page for second parameter

2009-09-07 Thread Igor Vaynberg
you will have to roll your own, this is not supported in 1.4 but should be in 1.5 -igor On Mon, Sep 7, 2009 at 11:27 AM, Vit Rozkovec wrote: > Hallo, > which encoding strategy should one use if one would like to achieve this: > > http://somesite/somepath/user1/products --> mounted on ProductsPage

Mount different page for second parameter

2009-09-07 Thread Vit Rozkovec
Hallo, which encoding strategy should one use if one would like to achieve this: http://somesite/somepath/user1/products --> mounted on ProductsPage.class http://somesite/somepath/user1/profile --> mounted on ProfilePage.class http://somesite/somepath/user2/products --> mounted on ProductsPage.c