Re: [Cppcms-users] Fwd: Fwd: cppcms::rpc::json_rpc_server usage.
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-05-23 14:08:59
|
>________________________________ > From: le ba <hma...@gm...> > > >By default cppcms::rpc::json_rpc_server don't dispatches Url by default like cppcms::application. >My problem is how to dispatch a dynamic page and activate the json_rpc call after. > > JSON-RPC protocol returns JSON object in output and receives JSON object as input... Dynamic page returns HTML output to the client and optionally receives some POST data as input... Decide what do you want to do. If you want some pages return HTML and others use JSON-RPC protocol read the documentation about application hierarchy http://cppcms.com/wikipp/en/page/cppcms_1x_tut_hierarchy Applications that should handle JSON-RPC should be derived from cppcms::rpc::json_rpc_server others should behave as normal applications. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |