JavaSercer Pages public InputStream (Web hosting maine) getResourceAsStream(String path); public String

February 1, 2007 on 3:34 am | In Java |

JavaSercer Pages public InputStream getResourceAsStream(String path); public String getServerInfo( ); public void log(String message); public void log(String message, Throwable cause); public void removeAttribute(String name); public void setAttribute(String name, Object attribute); // Deprecated methods public Servlet getServlet(String name) throws ServletException; public Enumeration getServlets( ); public Enumeration getServletNames( ); public void log(Exception exception, String message); } Methods public Object getAttribute(String name) Returns the servlet context attribute with the specified name, or null if there is no attribute by that name. Context attributes can be set by a servlet or a JSP page, representing the JSP application scope. A container can also use attributes to provide information that is not already available through methods in this interface. public java.util.Enumeration getAttributeNames( ) Returns an Enumeration of String objects containing the attribute names available within this servlet context. public ServletContext getContext(String uripath) Returns a ServletContext object that corresponds to a specified URI in the web container. This method allows servlets and JSP pages to gain access to contexts other than its own. The URI path must be absolute (beginning with /) and is interpreted based on the container’s document root. In a security-conscious environment, the container may return null for a given URI. public String getInitParameter(String name) Returns a String containing the value of the named context-wide initialization parameter, or null if the parameter does not exist. Context initialization parameters can be defined in the web application deployment descriptor. public java.util.Enumeration getInitParameterNames( ) Returns the names of the context’s initialization parameters as an Enumeration of String objects, or an empty Enumeration if the context has no initialization parameters. public int getMajorVersion( ) Returns the major version of the Java servlet API that this web container supports. For example, a container that complies with the Servlet 2.3 API returns 2. public String getMimeType(String filename) Returns the MIME type of the specified file, or null if the MIME type is not known. The MIME type is determined by the configuration of the web container, and may be specified in a web application deployment descriptor. public int getMinorVersion( ) Returns the minor version of the Java servlet API that this web container supports. For example, a container that complies with the Servlet 2.3 API returns 3. public RequestDispatcher getNamedDispatcher(String name) Returns a RequestDispatcher object that acts as a wrapper for the named servlet or JSP page. Names can be defined for servlets and JSP pages in the web application deployment descriptor. page 271

Hint: If you are looking for very good and affordable webspace to host and run your j2ee hosting application check Sandzak.com j2ee web hosting services

No Comments yet

TrackBack URI

Sorry, the comment form is closed at this time.