@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 |
public abstract java.lang.String name
public abstract java.lang.String value
public abstract java.lang.String description
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.