Hello!

I can not get the init-parameters that I specify in web.xml to work
correctly. When I invoke the servlet as 

http://localhost:8080/pipechain/servlet/se.masystem.pipeline.web.servlet.Log
inServlet 

then in init(ServletConfig):

config.getInitParameter("propertyfile");

returns null, but if I invoke the servlet with 

http://localhost:8080/pipechain/login

it works! Should not these urls be equivalent? (Tomcat 3.2.2)

/Claes 

(please cc me as I don't subscribe to the list)



Below is the relevant fragment from web.xml:

    <servlet>
        <servlet-name>
            Login
        </servlet-name>
        <servlet-class>
            se.masystem.pipeline.web.servlet.LoginServlet
        </servlet-class>
        <init-param>
            <param-name>propertyfile</param-name>
            <param-value>start.properties</param-value>
        </init-param>
    </servlet>

    <servlet-mapping>
        <servlet-name>
            Login
        </servlet-name>
        <url-pattern>
            /login
        </url-pattern>
    </servlet-mapping>



----------------------------------------------------------------------
Claes Holmerson
PipeChain AB
Porfyrvägen 14          +46 (0)46 32 52 42     office phone
SE-224 78 LUND          +46 (0)709 89 52 42   mobile phone
Sweden                  +46 (0)46 15 10 74     office fax
                           
http://www.pipechain.com/
------------------------------------------------------------------------

Reply via email to