Variable Name:


Interface Name:




Implemented by:

Internal container-dependent class

JSP Page Type:

Available in both regular JSP pages and error pages


The request variable is assigned a reference to an internal container-dependent class that implements a protocol-dependent interface extending the javax.servlet.ServletRequest. Since HTTP is the only protocol supported by JSP 1.1, the class always implements the javax.servlet.http.HttpServletRequest interface. The method descriptions in this section include all methods from both interfaces.

Interface Declarations

public interface ServletRequest { public Object getAttribute(String name); public java.util.Enumeration getAttributeNames( ); public String getCharacterEncoding( ); public int getContentLength( ); public String getContentType( ); public ServletInputStream getInputStream( ) throws; public java.util.Locale getLocale( ); public java.util.Enumeration getLocales( ); public String getParameter(String name); public java.util.Enumeration getParameterNames( ); public String[] getParameterValues( ); public String getProtocol( ); public getReader( ) throws; public String getRemoteAddr( ); public String getRemoteHost( ); public RequestDispatcher getRequestDispatcher(String path); public String getScheme( ); public String getServerName( ); public int ...

Get Java Server Pages now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.