wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lucio Crusca <lu...@sulweb.org>
Subject getInitParameter returns null
Date Sat, 13 Oct 2012 07:11:10 GMT
Hello *,

I'm having troubles with WebApplication.getInitParameter() method. In the 
init() method of MyApp I call

getInitParameter("myPar");

It returns null.

in web.xml I have

    <filter>
        <filter-name>wicket.MyApp</filter-name>
        <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-
class>
        <init-param>
            <param-name>applicationClassName</param-name>
            <param-value>example.MyApp</param-value>
        </init-param>
        <init-param>
            <param-name>myPar</param-name>
            <param-value>myValue</param-value>
        </init-param>
[...]

Why getInitParameter returns null instead of "myValue"?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message