Hi All,
I am new to Tapestry and would like to have a particular mapping for some
pages. For example, I would like that a call to
/user/MyUserName/viewSomething/withThisParameter maps to a page called
ViewSomething, where a user field would be initialized with MyUserName.

Now I can easily achieve similar goal using the url
/viewSomething/MyUserName/withThisParameter by using onActivate(x,y). But
the url does not have the same meaning and is less logical. As a concrete
example, try /tag/billgates/microsoft, it is not obvious what this is, but
/user/billgates/tag/microsoft is easy to guess.

So I would like to do a filter that intercepts the request and if it starts
with /user, get the page let's say in userpages packages instead of pages
package, and then pass the parameter after user/ and before /pageName to it.
It is quite simple to do using regular ServletFilter, how do i do that with
Tapestry Pages?

Regards,

Fabien.

PS: note that I don't expect this to be automatically done by T5, but I hope
there would be a simple programmatic way to do that.

Reply via email to