Thanks!

I saw the article on RESTful URLs with Wicket and using it for a different
purpose. But as Igor said, I'll use Servlet for serving my JSON and then use
them to create the UI in Wicket.

-Arun

http://java.dzone.com/news/wicket-creating-restful-urls

jthomerson wrote:
> 
> I think that if you search the mailing list archives, there are a
> couple examples of this.  I know that there was an email from Bruno
> Borges about creating a REST API with Wicket around last November.
> The pointers that were brought out in that thread would be very useful
> to you.
> 
> Basically, mount the page as a bookmarkable page.  Then, in your
> constructor, the query parameters will be available in PageParameters.
>  Use them, do your business.  Then I think writing directly to the
> response would be the easiest way of returning the JSON.
> 
> --
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 
> 
> 
> On Wed, Aug 5, 2009 at 4:20 PM, Arun Gupta<[email protected]> wrote:
>> I need to define couple of URLs in my app that return JSON data on GET
>> request and are not tied to any view. Planning to use
>> QueryStringUrlCodingStrategy and append the URL as
>> "type=runlogs&chart=barchart". Then in the WebPage, extract the query
>> string and process them.
>>
>> How do I ensure that JSON data is returned for GET requests to those URLs
>> ?
>>
>> Thanks,
>> -Arun
>>
>> --
>> Need Application Server ? - Download glassfish.org
>> Blog: http://blogs.sun.com/arungupta
>>
>> ---------------------------------------------------------------------
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Processing-GET-requests-tp24836398p24837597.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to