Package org.bgerp.app.servlet.jsp
Class UtilFunction
java.lang.Object
org.bgerp.app.servlet.jsp.UtilFunction
Functions called from util.tld JSP library.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
static String
static String
static Integer
static String
htmlEncode
(String value) Replaces some HTML symbols.static String
httpLinksToHtml
(String value) Recognizes and replaces HTTP links to HTML code.static Object
newInstance
(String className) Non-varargs version ofnewInstance(String, Object...)
for using as a JSP taglib method.static Object
newInstance
(String className, Object arg0) Non-varargs version ofnewInstance(String, Object...)
for using as a JSP taglib method.static Object
newInstance
(String className, Object... args) Creates a new instance of a Java class.static Object
newInstance
(String className, Object arg0, Object arg1) Non-varargs version ofnewInstance(String, Object...)
for using as a JSP taglib method.static Object
newInstance
(String className, Object arg0, Object arg1, Object arg2) Non-varargs version ofnewInstance(String, Object...)
for using as a JSP taglib method.objectTitleList
(List<T> fullList, Set<Integer> selectedIds) Deprecated.static String
quotEscape
(String value) Escapes double quotes, used for preparation JS strings in JSPs.static String
static String
static final String
toString
(Collection<?> valuesList) Deprecated.static String
truncateHtml
(String s, Integer limit) Обрезает строку с HTML разметкой до максимальной длины, не разрывая теги.static String
uiid()
static String
-
Constructor Details
-
UtilFunction
public UtilFunction()
-
-
Method Details
-
newInstance
Creates a new instance of a Java class. Generic method with varargs argument, can't be called from JSP.- Parameters:
className
- the class name.args
- constructor arguments.- Returns:
- Throws:
Exception
-
newInstance
Non-varargs version ofnewInstance(String, Object...)
for using as a JSP taglib method.- Throws:
Exception
-
newInstance
Non-varargs version ofnewInstance(String, Object...)
for using as a JSP taglib method.- Throws:
Exception
-
newInstance
Non-varargs version ofnewInstance(String, Object...)
for using as a JSP taglib method.- Throws:
Exception
-
newInstance
public static Object newInstance(String className, Object arg0, Object arg1, Object arg2) throws Exception Non-varargs version ofnewInstance(String, Object...)
for using as a JSP taglib method.- Throws:
Exception
-
checked
- See Also:
-
checked
- See Also:
-
selected
- See Also:
-
selected
- See Also:
-
getInt
- See Also:
-
uiid
- Returns:
- an unique identifier for HTML nodes.
-
urlEncode
- Throws:
UnsupportedEncodingException
-
htmlEncode
Replaces some HTML symbols.<
to&lt;
>
to&gt;
\n
to<br/>
\t
to 4 whitespaces- Parameters:
value
- input value.- Returns:
- string with replacements.
-
httpLinksToHtml
Recognizes and replaces HTTP links to HTML code. http://blog.codinghorror.com/the-problem-with-urls/- Parameters:
value
-- Returns:
-
quotEscape
Escapes double quotes, used for preparation JS strings in JSPs.- Parameters:
value
-- Returns:
-
truncateHtml
Обрезает строку с HTML разметкой до максимальной длины, не разрывая теги. Находится первая подходящая позиция после указанной длины.- Parameters:
s
- исходня строка.limit
- максимальная длина.- Returns:
-
fileNameWithLastModTime
-
docUrl
-
toString
Deprecated. -
objectTitleList
@Deprecated public static <T extends IdTitle> String objectTitleList(List<T> fullList, Set<Integer> selectedIds) Deprecated.
-