Class UtilFunction
java.lang.Object
org.bgerp.app.servlet.jsp.UtilFunction
Functions defined in util.tld JSP library
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringAction call URL likeactionPath.do?method=methodNameout of semicolon separated action class and methodactionId:methodNamestatic Stringstatic Stringstatic StringDocumentation URL for the currently running app versionstatic Stringstatic Integerstatic StringhtmlEncode(String value) Replaces some HTML symbolsstatic StringhttpLinksToHtml(String value) Recognizes and replaces HTTP links to HTML code http://blog.codinghorror.com/the-problem-with-urls/static ObjectnewInstance(String className) Non-varargs version ofnewInstance(String, Object...)for using as a JSP taglib methodstatic ObjectnewInstance(String className, Object arg0) Non-varargs version ofnewInstance(String, Object...)for using as a JSP taglib methodstatic ObjectnewInstance(String className, Object... args) Creates a new instance of a Java class.static ObjectnewInstance(String className, Object arg0, Object arg1) Non-varargs version ofnewInstance(String, Object...)for using as a JSP taglib methodstatic ObjectnewInstance(String className, Object arg0, Object arg1, Object arg2) Non-varargs version ofnewInstance(String, Object...)for using as a JSP taglib methodobjectTitleList(List<T> fullList, Set<Integer> selectedIds) Deprecated.static StringquotEscape(String value) Escapes double quotes, used for preparation JS strings in JSPsstatic Stringstatic Stringstatic final StringtoString(Collection<?> valuesList) Deprecated.static StringtruncateHtml(String s, Integer limit) Truncates a string with HTML markup to a maximal length without breaking tags.static Stringuiid()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 nameargs- constructor arguments- Returns:
- the created instance
- Throws:
Exception
-
newInstance
Non-varargs version ofnewInstance(String, Object...)for using as a JSP taglib method- Throws:
Exception
-
newInstance
-
newInstance
-
newInstance
-
checked
-
checked
-
selected
-
selected
-
getInt
-
uiid
- Returns:
- a unique identifier for HTML nodes
-
urlEncode
- Throws:
UnsupportedEncodingException
-
htmlEncode
-
httpLinksToHtml
-
quotEscape
-
truncateHtml
Truncates a string with HTML markup to a maximal length without breaking tags. Finds a first position after all tags were closed, so the resulting length may be more than max.- Parameters:
s- the initial stringlimit- maximal length- Returns:
- the truncated string
-
fileNameWithLastModTime
-
docUrl
-
actionUrl
Action call URL likeactionPath.do?method=methodNameout of semicolon separated action class and methodactionId:methodName- Parameters:
action- the semicolon separated action class and method- Returns:
- the URL
- Throws:
javassist.NotFoundException
-
toString
Deprecated. -
objectTitleList
-