Hi David/All
I put in the QueryStringUrlCodingStrategy code as suggested by you in the init 
class.
Now the url comes as 
/editor/?note=119871054906381055

with an additional '/?'  
what is the reason for that.

Haritha

----- Original Message ----
From: David Shepherdson <[EMAIL PROTECTED]>
To: users@wicket.apache.org
Sent: Thursday, January 3, 2008 9:19:35 AM
Subject: Re: BookmarkablePageLink giving a different URL


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]







      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Reply via email to