javax.servlet.annotation
Annotation Type WebInitParam


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface WebInitParam

The annotation used to declare an initialization parameter on a Servlet or Filter, within a WebFilter or WebServlet annotation.

E.g. @WebServlet(name="TestServlet", urlPatterns={"/test"},initParams=) public class TestServlet extends HttpServlet { ...

Since:
Servlet 3.0

Required Element Summary
 String name
           
 String value
           
 
Optional Element Summary
 String description
           
 

Element Detail

name

public abstract String name
Returns:
name of the initialization parameter

value

public abstract String value
Returns:
value of the initialization parameter

description

public abstract String description
Returns:
description of the initialization parameter
Default:
""

(Built by coreservlets)

As of July 2010, there were no online versions of the servlet 3.0, JSP 2.2, and EL 2.2 Javadocs, except as part of the huge Java EE 6 API. So, I built them myself from the Tomcat 7 source code.

Java EE TutorialsJava EE Training