Once you got servlet engine installed, writing servlets is fairly easy.
EXPORT_SERVLET(YourServletClassName)in your source file that defines servlet functions
<servlet name="MyServlet" dso="path/to/MyServlet.so"/>
Note: engine and servlet need to be compiled by same GCC version.
Note: servlet must be compiled and linked with the same version of libcserv as cppserv version it will run in.
Authoright © Total Knowledge: 1999-2013