| java.lang.Object ru.emdev.EmForge.util.Helper
Helper | public class Helper (Code) | | Helper class with some utility functions used in EmForge
|
bindSession | public static Session bindSession(SessionFactory sessionFactory)(Code) | | Parameters: sessionFactory - |
concatUrl | public static String concatUrl(String i_baseUrl, String i_path)(Code) | | Concatenates the specified part of URL
Parameters: i_baseUrl - is a first part of URL Parameters: i_path - is a second part of URL the concatenated URL, or empty string if parameters are empty or both null. |
getID | public static long getID(HttpServletRequest i_request, String i_attrName)(Code) | | Gets id from http request from specified attribute
Parameters: i_request - Parameters: i_attrName - |
getIDFromFacesContext | public static long getIDFromFacesContext(String i_attrName)(Code) | | Gets ID object from FacesContext
|
getReportEngine | public static ReportViewBean getReportEngine(FacesContext i_facesContex) throws Exception(Code) | | Gets ReportViewBean via FacesContext
Parameters: i_facesContex - |
getWikiEngine | public static WikiEngine getWikiEngine(FacesContext i_facesContex) throws Exception(Code) | | Gets WikiEngine via FacesContext
Parameters: i_facesContex - |
get_parameter | public static String get_parameter(HttpServletRequest i_request, String i_paramName)(Code) | | Get parameter from the request. After some time of working I found that my application doesn't work correctly
with UTF-8 No, it displays it quite well, it stored it in database as well also, but - problem was in sending
utf-8 data from html form to the servlet. In servlet i_request.getParameter always returns ISO-8859-1 I read this
article from Sun: http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/ It describes this question
quite well, but, solution proposed by this article:
i_request.setCharacterEncoding("UTF-8"); value = new String(i_request.getParameter(i_paramName).getBytes("ISO-8859-1"), "UTF-8"); |
isNumber | public static boolean isNumber(String n)(Code) | | Returns true if string is number
Parameters: n - |
isRelativePath | public static boolean isRelativePath(String i_href)(Code) | | Determines - is specified path - relative path or not?
Parameters: i_href - |
unbindSession | public static void unbindSession(SessionFactory sessionFactory)(Code) | | Parameters: sessionFactory - |
|
|