5 Replies Latest reply on Aug 26, 2006 6:13 AM by Thomas Luzat

    Friendly URLs (e.g. /request/parameter1/parameter2)

    Thomas Luzat Newbie

      I would like to use "friendly URLs" in some places of my application. Examples would be:

      http://www.example.com/gallery/20/12
      http://www.example.com/articles/some-interesting-article

      vs.

      http://www.example.com/gallery?id=20&img=12
      http://www.example.com/articles?name=some-interesting-article

      Are there any (decent, non-hackish) ways to do that using Seam? It wouldn't be too hard to rewrite incoming URLs in Apache or later on, but what about the URLs generated by the JSF/Seam tags?

      Having to rewrite URLs does look kind of hackish to me, too. I'd prefer to plug in some sort of parser and generator for certain requests.

      Thanks for any input :-)