Web Hosting Java, JSP, Tomcat 6, J2EE, Servlets, Struts, Jboss
JavaSercer Pages public (Xaraya web hosting) java.util.Enumeration getInitParameterNames( ) Returns the
February 2, 2007 on 2:21 am | In Java | No Comments JavaSercer Pages public java.util.Enumeration getInitParameterNames( ) Returns the names of the servlet’s or JSP page’s initialization parameters as an Enumeration of String objects, or an empty Enumeration if the servlet has no initialization parameters. public ServletContext getServletContext( ) Returns a reference to the ServletContext that the servlet or JSP page belongs to. public String getServletName( ) Returns the name of the servlet instance or JSP page. The name may be assigned in the web application deployment descriptor. For an unregistered (and thus unnamed) servlet instance or JSP page, the servlet’s class name is returned. exception Synopsis Variable Name: exception Class Name: java.lang. Throwable Extends: None Implements: java.io.Serializable Implemented by: Part of the standard Java library JSP Page Type: Available only in a page marked as an error page using the page directive isErrorPage attribute Description The exception variable is assigned to the subclass of Throwable that caused the error page to be invoked. The Throwable class is the superclass of all errors and exceptions in the Java language. Only objects that are instances of this class (or of one of its subclasses) are thrown by the Java Virtual Machine or by the Java throw statement. See the Java documentation at http://java.sun.com/docs/index.html for a description of the Throwable class. out Synopsis Variable Name: out Class Name: javax.servlet.jsp.JspWriter page 274
Note: If you are looking for cheap and inexpensive provider to host and run your tomcat application check professional tomcat hosting services
J2ee hosting - JavaSercer Pages public Enumeration getServlets( ) This method
February 1, 2007 on 5:19 pm | In Java | No Comments JavaSercer Pages public Enumeration getServlets( ) This method was originally defined to return an Enumeration of all the servlets known to this servlet context. As of the Servlet 2.1 API, this method always returns an empty Enumeration, and remains only to preserve binary compatibility. This method will be permanently removed in a future version of the Java servlet API. public Enumeration getServletNames( ) This method was originally defined to return an Enumeration of all the servlet names known to this context. As of the Servlet 2.1 API, this method always returns an empty Enumeration, and remains only to preserve binary compatibility. This method will be permanently removed in a future version of the Java servlet API. public void log(Exception exception, String message) This method was originally defined to write an exception’s stack trace and an explanatory error message to the web container log file. As of the Servlet 2.1 API, the recommendation is to use log(String, Throwable) instead. config Synopsis Variable Name: config Interface Name: javax.servlet. ServletConfig Extends: None Implemented by: Internal container-dependent class JSP Page Type: Available in both regular JSP pages and error pages Description A ServletConfig instance is used by a web container to pass information to a servlet or JSP page during initialization. The configuration information contains initialization parameters (defined in the web application deployment descriptor) and the ServletContext object representing the web application the servlet or JSP page belongs to. Interface Declaration public interface ServletConfig { public String getInitParameter(String name); public Enumeration getInitParameterNames( ); public ServletContext getServletContext( ); public String getServletName( ); } Methods public String getInitParameter(String name) Returns a String containing the value of the specified servlet or JSP page initialization parameter, or null if the parameter does not exist. page 273
Note: If you are looking for cheap and quality provider to host and run your java application check Astra java hosting services
JavaSercer Pages public String getRealPath(String path) Returns a
February 1, 2007 on 11:38 am | In Java | No CommentsJavaSercer Pages public String getRealPath(String path) Returns a String containing the filesystem path for a specified context-relative path. This method returns null if the web container cannot translate the path to a filesystem path for any reason (such as when the content is being made available from a WAR archive). public RequestDispatcher getRequestDispatcher(String path) Returns a RequestDispatcher object that acts as a wrapper for the resource located at the specified context-relative path. The resource can be dynamic (servlet or JSP) or static (for instance, a regular HTML file). public java.net.URL getResource(String path) throws MalformedURLException Returns a URL to the resource that is mapped to the specified context-relative path. This method allows the web container to make a resource available to servlets and JSP pages from other sources than a local filesystem, such as a database or a WAR file. The URL provides access to the resource content directly, so be aware that requesting a JSP page returns a URL for the JSP source code as opposed to the processed result. Use a RequestDispatcher instead to include results of an execution. This method returns null if no resource is mapped to the pathname. public java.io.InputStream getResourceAsStream(String path) Returns the resource mapped to the specified context-relative path as an InputStream object. See getResource( ) for details. public String getServerInfo( ) Returns the name and version of the servlet container on which the servlet or JSP page is running as a String with the format “servername/versionnumber” (for example, “Tomcat/3.2″). Optionally, a container may include other information, such as the Java version and operating system information, within parentheses. public void log(String message) Writes the specified message to a container log file. The name and type of the log file is container- dependent. public void log(String message, Throwable cause) Writes the specified message and a stack trace for the specified Throwable to the servlet log file. The name and type of the log file is container-dependent. public void removeAttribute(String name) Removes the attribute with the specified name from the servlet context. public void setAttribute(String name, Object attribute) Binds an object to the specified attribute name in this servlet context. If the specified name is already used for an attribute, this method removes the old attribute and binds the name to the new attribute. The following methods are deprecated: public Servlet getServlet(String name) throws ServletException This method was originally defined to retrieve a servlet from a ServletContext. As of the Servlet 2.1 API, this method always returns null, and remains only to preserve binary compatibility. This method will be permanently removed in a future version of the Java servlet API. page 272
Hint: This post is supported by Gama web hosting php services
JavaSercer Pages public InputStream (Web hosting maine) getResourceAsStream(String path); public String
February 1, 2007 on 3:34 am | In Java | No CommentsJavaSercer 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
...I
just wanted to take the time to say "Thank you!" for our new webmail
system. It's great! Thanks for taking such good care of us.
Thanks
for helping me out. Just for the record, Webhostingjava.net has been a great
web host! So far your support and handling of questions has far
exceeded that of a "larger web hosting company".
I
would like to thank you for helping me with my domain...You have
shown me great patience and professionalism. I would not hesitate to
recommend you to my clients.