| java.lang.Object com.rimfaxe.webserver.runtime.JspRuntimeLibrary
JspRuntimeLibrary | public class JspRuntimeLibrary (Code) | | Bunch of util methods that are used by code generated for useBean,
getProperty and setProperty.
The __begin, __end stuff is there so that the JSP engine can
actually parse this file and inline them if people don't want
runtime dependencies on this class. However, I'm not sure if that
works so well right now. It got forgotten at some point. -akv
author: Mandar Raje |
Method Summary | |
public static Object | convert(String propertyName, String s, Class t, Class propertyEditorClass) | public static void | createTypedArray(String propertyName, Object bean, Method method, String[] values, Class t, Class propertyEditorClass) Create a typed array. | public static String | decode(String encoded) Decode an URL formatted string.
Parameters: s - The string to decode. | public static String | escapeQueryString(String unescString) Escape special shell characters. | public static String | getContextRelativePath(ServletRequest request, String relativePath) Convert a possibly relative resource path into a context-relative
resource path that starts with a '/'. | public static java.lang.reflect.Method | getReadMethod(Class beanClass, String prop) | public static Object | getValueFromBeanInfoPropertyEditor(Class attrClass, String attrName, String attrValue, Class propertyEditorClass) | public static Object | getValueFromPropertyEditorManager(Class attrClass, String attrName, String attrValue) | public static java.lang.reflect.Method | getWriteMethod(Class beanClass, String prop) | public static Object | handleGetProperty(Object o, String prop) | public static void | handleSetProperty(Object bean, String prop, Object value) | public static void | handleSetProperty(Object bean, String prop, int value) | public static void | handleSetProperty(Object bean, String prop, short value) | public static void | handleSetProperty(Object bean, String prop, long value) | public static void | handleSetProperty(Object bean, String prop, double value) | public static void | handleSetProperty(Object bean, String prop, float value) | public static void | handleSetProperty(Object bean, String prop, char value) | public static void | handleSetProperty(Object bean, String prop, byte value) | public static void | handleSetProperty(Object bean, String prop, boolean value) | public static void | include(HttpServletRequest request, HttpServletResponse response, String relativePath, JspWriter out, boolean flush) Perform a RequestDispatcher.include() operation, with optional flushing
of the response beforehand. | public static void | introspect(Object bean, ServletRequest request) | public static void | introspecthelper(Object bean, String prop, String value, ServletRequest request, String param, boolean ignoreMethodNF) | public static String | toString(Object o) | public static String | toString(byte b) | public static String | toString(boolean b) | public static String | toString(short s) | public static String | toString(int i) | public static String | toString(float f) | public static String | toString(long l) | public static String | toString(double d) | public static String | toString(char c) |
createTypedArray | public static void createTypedArray(String propertyName, Object bean, Method method, String[] values, Class t, Class propertyEditorClass) throws JasperException(Code) | | Create a typed array.
This is a special case where params are passed through
the request and the property is indexed.
|
decode | public static String decode(String encoded)(Code) | | Decode an URL formatted string.
Parameters: s - The string to decode. The decoded string. |
escapeQueryString | public static String escapeQueryString(String unescString)(Code) | | Escape special shell characters.
Parameters: unescString - The string to shell-escape The escaped shell string. |
getContextRelativePath | public static String getContextRelativePath(ServletRequest request, String relativePath)(Code) | | Convert a possibly relative resource path into a context-relative
resource path that starts with a '/'.
Parameters: request - The servlet request we are processing Parameters: relativePath - The possibly relative resource path |
include | public static void include(HttpServletRequest request, HttpServletResponse response, String relativePath, JspWriter out, boolean flush) throws IOException, ServletException(Code) | | Perform a RequestDispatcher.include() operation, with optional flushing
of the response beforehand.
Parameters: request - The servlet request we are processing Parameters: response - The servlet response we are processing Parameters: relativePath - The relative path of the resource to be included Parameters: out - The JspWriter to whom we are currently writing Parameters: flush - Should we flush before the include is processed? exception: IOException - if thrown by the included servlet exception: ServletException - if thrown by the included servlet |
|
|