[jboss-user] [JBoss Seam] - Searchengine friendly links

spambob do-not-reply at jboss.com
Wed Nov 22 19:10:40 EST 2006


I would like to have URLs that look like static links although they are dynamic links.

I.e: something like 'www.example.com/products/12345.html' where 12345 is the product id. That is all requests for '/products/xyz.html' get mapped to '/products/showProduct.seam?productId=xyz'.

Normally i would do that with a servlet filter but i was wondering if there's some seam built-in magic to do that automagically?!

I.e. by configuring something in pages.xml like:
<page view-id="/products/#{productId}.html" target="/products/showProduct.seam" />
Which sets a request scoped variable 'productId' so i can reference it in the JSF page.

Is something like this possible? If yes: how? If not what do you think about it and whats the current best practice for it?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988017#3988017

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988017



More information about the jboss-user mailing list