karthik raghupathy
karthik raghupathy

Reputation: 21

Set @WebInitParam dynamic value

This is my code. I am trying to set the Init parameters dynamically. Currently java accepts only a String as the param. I need something like value = getValues(). The idea is to set the config value dynamically.

    @WebServlet(value = "/dwr/*", initParams = { @WebInitParam(name = "config", value = "<DYNAMIC>") })
public class O2DWRServlet extends DwrServlet {
    private static final long serialVersionUID = -2745056470448621968L;

}

Upvotes: 2

Views: 218

Answers (0)

Related Questions