@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface WebInitParam
Servlet
or Filter
, within a
WebFilter
or
WebServlet
annotation.@WebServlet(name="TestServlet", urlPatterns={"/test"},initParams={@WebInitParam(name="test", value="true")})
public class TestServlet extends HttpServlet { ...
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
name |
java.lang.String |
value |
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
description |
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.