是否可以在@WebInitParam中动态获取值?

时间:2018-11-12 10:34:27

标签: java servlets

我有一个JSP页面,用户必须输入一些自定义URL。我想在Servlet的@WebInitParam中传递该自定义网址

@WebServlet(name = "oauthCustomURL", initParams = {
     @WebInitParam(name = "clientId", value = "123"),
     @WebInitParam(name = "key", value = "***"),
     @WebInitParam(name = "environment", value = "customUrl"),
}) //in value I want to pass the value entered by user

0 个答案:

没有答案