On 3 Jan 2008, at 5.07 pm, Haritha Juturu wrote:
I would like to get a url similar to "/editor?note=123456"
But when i execute this code i get "/editor/note/123456"
Can anyone tell me how i can get the format that i would like.
I believe you can do this by mounting the page using a
QueryStringUrlCodingStrategy. In your application's init() method, do
something like:
mount(new QueryStringUrlCodingStrategy("/editor", Editor.class));
That should cause it to encode the parameters using the query string,
rather than as part of the URL path.
(Incidentally, it looks like the JavaDoc for
QueryStringUrlCodingStrategy could do with an update -- it still has
references to QueryStringRequestTargetUrlCodingStrategy, which I
presume was the old name for the class.)
David Shepherdson
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]