[Cppcms-users] Problem with cppcms::application::add() method
Brought to you by:
artyom-beilis
|
From: Daniel V. <chi...@gm...> - 2010-11-10 22:14:53
|
Hello.
I found problems with cppcms::application::add() and
cppcms::application::attach() methods
First problem:
void application::add(application &app,std::string regex,int
part)
{
add(app);
url_dispatcher().mount(regex,app,part);
}
The code above has an error, the correct code is:
dispatcher().mount(regex,app,part);
Second problem:
When I attach or add an application B to an application A, the method
"void B::main(std::string url)" is never called on url dispatch stage.
This behaviour causes problems when adding cppcms::rpc::json_rpc_server
application because the parsing of the request is made in
json_rpc_server::main method.
The result is that the application does not work.
Third problem:
in cppcms::rpc::json_rpc_server application: URL mapping with
dispatcher().assign() method does not work because main method
overwriting.
Thank you.
|