Hi!
In the example we are using Java because it is one of the most widely used languages for web server applications, while, for instance C++ is more rarely chosen for this task. However, you may wish to check the following C++ web servers options:
http://cppcms.com/wikipp/en/page/main
Best regards