If you do not use the quotes ", your string "document" will be considered as
a variable and your RewriteRequest will match /something/somethingElse
Is it better with this code ?
case RewriteRequest(ParsePath("document" :: id :: Nil,_,_,_ ), _,_) =>
RewriteResponse("display" :: Nil, Map("id" ->id
Have a read of my article here: http://is.gd/wq4K
Cheers, Tim
On 23 Nov 2009, at 10:50, iboy wrote:
> I am developing an application in which i need to do url rewriting so
> that all the request of type /document/id gets directed to webpage
> display.html which calls a snippet in which i am try
I am developing an application in which i need to do url rewriting so
that all the request of type /document/id gets directed to webpage
display.html which calls a snippet in which i am trying to do some
processing by capturing the parameter passed during
urlrewriting,everything works fine but i a