[ http://issues.apache.org/jira/browse/WICKET-154?page=comments#action_12456951 ] Eelco Hillenius commented on WICKET-154: ----------------------------------------
ServletContext#getInitParameter is meant for global context parameters it turns out (I didn't know that). So for init parameters on the filter, we should expose the filter (good idea anyway imo). Furthermore, I think we can expose a getInitParameter method on WebApplication as well. > Access to init parameters through getServletContext.getInitParameter() not > working > ---------------------------------------------------------------------------------- > > Key: WICKET-154 > URL: http://issues.apache.org/jira/browse/WICKET-154 > Project: Wicket > Issue Type: Improvement > Components: wicket > Affects Versions: 2.0 > Environment: Windows 2000 SP4 > Tomcat 5.5 > Reporter: Tristan Weil > > The command WebApplication.get().getServletContext.getInitParameter("param"); > always returns null. > The init parameters can only be accessed with the WicketFilter class. A > getter in the WebApplication class on the wicketFilter field could work. The > previous command could then be replaced with: > WebApplication.get().getWicketFilter().getFilterConfig().getInitParameter("param"); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
