hey johan
currently i have created a new class which extends from
QueryStringUrlCodingStrategy to make it work.
u suggest that i shouold use normal mounting , do u mean one of these 2 methods
given below
mount(IRequestTargetUrlCodingStrategy encoder)
and
mount(java.lang.String path,
PackageName packageName)
Thanks
Haritha
----- Original Message ----
From: Johan Compagner <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, January 3, 2008 10:04:39 PM
Subject: Re: BookmarkablePageLink giving a different URL
Dont use query string but use the normal mounting
Query string does exactly what it says it does it builds a query
string for params
On 1/3/08, David Shepherdson <[EMAIL PROTECTED]>
wrote:
> 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping