Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-154

Access to init parameters through getServletContext.getInitParameter() not working

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0 branch (discontinued)
    • wicket
    • None
    • Windows 2000 SP4
      Tomcat 5.5

    Description

      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");

      Attachments

        Activity

          People

            ehillenius Eelco Hillenius
            tit0u Tristan Weil
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: