public class ServletUtil extends Object
构造器和说明 |
---|
ServletUtil() |
限定符和类型 | 方法和说明 |
---|---|
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
|
static String |
percentageGraph(float perc,
int width)
Generate the percentage graph and returns HTML representation string
of the same.
|
static String |
percentageGraph(int perc,
int width)
Generate the percentage graph and returns HTML representation string
of the same.
|
public static final String HTML_TAIL
public static PrintWriter initHTML(javax.servlet.ServletResponse response, String title) throws IOException
IOException
public static String getParameter(javax.servlet.ServletRequest request, String name)
public static String htmlFooter()
public static String percentageGraph(int perc, int width) throws IOException
perc
- The percentage value for which graph is to be generatedwidth
- The width of the display tableIOException
public static String percentageGraph(float perc, int width) throws IOException
perc
- The percentage value for which graph is to be generatedwidth
- The width of the display tableIOException
Copyright © 2009 The Apache Software Foundation