Home Projects Jobs Clientele Contact


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with initializing a servlet.

I need to initialize my servlet using init(ServletConfig& conf).
I know I have to call GenericServlet' init(conf) in order to do that(btw
the documentation still has java syntax: super.init(conf)).
Here is what I do:

void UuServlet::init(ServletConfig& conf)
  string strUID = conf.getInitParameter("UID");

getInitParameter("UID") returns null, despite of the fact that I have this
parameter defined in my engine.xml:

    <servlet name="UuServlet" dso="./debug/libui/libuu.so">
        <parameter name="UID" value="sergey"/>

What am I doing wrong?


Authoright © Total Knowledge: 2001-2008