You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by Terry Steichen <te...@net-frame.com> on 2013/03/16 23:55:45 UTC
Using JSPWiki Page for Pure data
I have an extensive site with thousands of JSPWiki pages and many JSP's
as well. They all share a standard look/feel. What I'd like to do is
take a JSON-encoded string and send it back to a requesting client.
I imagine I'm missing something very basic. But I can't figure out how
to direct the response back so it ONLY contains the JSON-encoded
response (with none of the HTML stuff that form the look/feel of all pages).
I realize I can use a special purpose JSP, but for a variety of reasons,
I'd like to do it within the JSPWiki framework. My brain has gone numb
on this. Any thoughts would be welcome (and I hope I've explained the
matter sufficiently).
Terry Steichen
Re: Using JSPWiki Page for Pure data
Posted by Dirk Frederickx <di...@gmail.com>.
Terry,
Check-out jspwiki-common.js; which contains a javascript-routine
"jsonrpc".
It builds on top of the mootools AJAX api, to invoke JSON Requests and
capture the response or error.
dirk
On Sun, Mar 17, 2013 at 9:58 AM, Florian Holeczek <fl...@holeczek.de>wrote:
> Hi Terry,
>
> this is done via JSON-RPC, have a look at the search page to see how it
> works!
>
> Regards
> Florian
>
>
>
> On 16.03.2013 23:55, Terry Steichen wrote:
>
>> I have an extensive site with thousands of JSPWiki pages and many JSP's
>> as well. They all share a standard look/feel. What I'd like to do is take
>> a JSON-encoded string and send it back to a requesting client.
>>
>> I imagine I'm missing something very basic. But I can't figure out how
>> to direct the response back so it ONLY contains the JSON-encoded response
>> (with none of the HTML stuff that form the look/feel of all pages).
>>
>> I realize I can use a special purpose JSP, but for a variety of reasons,
>> I'd like to do it within the JSPWiki framework. My brain has gone numb on
>> this. Any thoughts would be welcome (and I hope I've explained the matter
>> sufficiently).
>>
>> Terry Steichen
>>
>
Re: Using JSPWiki Page for Pure data
Posted by Florian Holeczek <fl...@holeczek.de>.
Hi Terry,
this is done via JSON-RPC, have a look at the search page to see how it works!
Regards
Florian
On 16.03.2013 23:55, Terry Steichen wrote:
> I have an extensive site with thousands of JSPWiki pages and many JSP's as well. They all share a standard look/feel. What I'd like to do is take a JSON-encoded string and send it back to a requesting client.
>
> I imagine I'm missing something very basic. But I can't figure out how to direct the response back so it ONLY contains the JSON-encoded response (with none of the HTML stuff that form the look/feel of all pages).
>
> I realize I can use a special purpose JSP, but for a variety of reasons, I'd like to do it within the JSPWiki framework. My brain has gone numb on this. Any thoughts would be welcome (and I hope I've explained the matter sufficiently).
>
> Terry Steichen