org.apache.hadoop.util
Class ServletUtil

java.lang.Object
  extended by org.apache.hadoop.util.ServletUtil

public class ServletUtil
extends Object


Field Summary
static String HTML_TAIL
           
 
Constructor Summary
ServletUtil()
           
 
Method Summary
static String getParameter(javax.servlet.ServletRequest request, String name)
          Get a parameter from a ServletRequest.
static String htmlFooter()
          HTML footer to be added in the jsps.
static PrintWriter initHTML(javax.servlet.ServletResponse response, String title)
          Initial HTML header
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTML_TAIL

public static final String HTML_TAIL
Constructor Detail

ServletUtil

public ServletUtil()
Method Detail

initHTML

public static PrintWriter initHTML(javax.servlet.ServletResponse response,
                                   String title)
                            throws IOException
Initial HTML header

Throws:
IOException

getParameter

public static String getParameter(javax.servlet.ServletRequest request,
                                  String name)
Get a parameter from a ServletRequest. Return null if the parameter contains only white spaces.


htmlFooter

public static String htmlFooter()
HTML footer to be added in the jsps.

Returns:
the HTML footer.


Copyright © 2008 The Apache Software Foundation