| java.lang.Object com.rimfaxe.webserver.compiler.jsp.JspUtil
JspUtil | public class JspUtil (Code) | | This class has all the utility method(s).
Ideally should move all the bean containers here.
author: Mandar Raje. author: Rajiv Mordani. author: Danno Ferrin author: Pierre Delisle author: Lars Andersen |
Inner Class :public static class ValidAttribute | |
Method Summary | |
public static Hashtable | attrsToHashtable(Attributes attrs) | public static boolean | booleanValue(String s) Convert a String value to 'boolean'.
Besides the standard conversions done by
Boolean.valueOf(s).booleanValue(), the value "yes"
(ignore case) is also converted to 'true'. | public static void | checkAttributes(String typeOfTag, Attributes attrs, ValidAttribute[] validAttributes, Mark start) | public static String | escapeQueryString(String unescString) | public static char[] | escapeQuotes(char[] chars) | public static String | escapeXml(String s) Escape the 5 entities defined by XML. | public static String | getElementChildTextData(Element e) Get the data for the first child associated with the
Element provided as argument. | public static String | getExpr(String expression, boolean isXml) | public static String | getExprInXml(String expression) | public static boolean | isExpression(String token, boolean isXml) Checks if the token is a runtime expression.
In standard JSP syntax, a runtime expression starts with '<%' and
ends with '%>'. | public static Document | parseXMLDoc(String uri, InputStream in) Parses the XML document contained in the InputStream. | public static Document | parseXMLDocJaxp(String uri, InputStream in) Parses the XML document contained in the InputStream. | public static char[] | removeQuotes(char[] chars) | public static String | replace(String name, char replace, String with) Replaces any occurrence of replace with with in the
given string. |
booleanValue | public static boolean booleanValue(String s)(Code) | | Convert a String value to 'boolean'.
Besides the standard conversions done by
Boolean.valueOf(s).booleanValue(), the value "yes"
(ignore case) is also converted to 'true'.
If 's' is null, then 'false' is returned.
Parameters: s - the string to be converted the boolean value associated with the string s |
escapeQuotes | public static char[] escapeQuotes(char[] chars)(Code) | | |
escapeXml | public static String escapeXml(String s)(Code) | | Escape the 5 entities defined by XML.
|
getElementChildTextData | public static String getElementChildTextData(Element e)(Code) | | Get the data for the first child associated with the
Element provided as argument. It is assumed that this
first child is of type Text.
Parameters: e - the DOM Element to read from the data associated with the first child of the DOMelement. |
getExpr | public static String getExpr(String expression, boolean isXml)(Code) | | the "expression" part of a runtime expression, taking the delimiters out. |
getExprInXml | public static String getExprInXml(String expression)(Code) | | Takes a potential expression and converts it into XML form
|
isExpression | public static boolean isExpression(String token, boolean isXml)(Code) | | Checks if the token is a runtime expression.
In standard JSP syntax, a runtime expression starts with '<%' and
ends with '%>'. When the JSP document is in XML syntax, a runtime
expression starts with '%=' and ends with '%'.
Parameters: token - The token to be checkedreturn whether the token is a runtime expression or not. |
parseXMLDocJaxp | public static Document parseXMLDocJaxp(String uri, InputStream in) throws JasperException(Code) | | Parses the XML document contained in the InputStream.
This XML document is either web.xml or a tld.
[The TLD has to be cached internally (see MyEntityResolver)]
|
removeQuotes | public static char[] removeQuotes(char[] chars)(Code) | | |
replace | public static String replace(String name, char replace, String with)(Code) | | Replaces any occurrence of replace with with in the
given string.
|
|
|