Package example
Class JteContext
- java.lang.Object
-
- example.JteContext
-
public class JteContext extends java.lang.ObjectDummy jte context, how you might use it in your project. Contains helper methods for a JSP migration
-
-
Constructor Summary
Constructors Constructor Description JteContext()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisEmpty(java.lang.Object obj)Taken from org.apache.el.parser.AstEmpty implementationstatic gg.jte.Contentlocalize(java.lang.String key)Dummy localization method.static gg.jte.Contentlocalize(java.lang.String key, java.lang.Object... params)Dummy localization method.
-
-
-
Method Detail
-
isEmpty
public static boolean isEmpty(java.lang.Object obj)
Taken from org.apache.el.parser.AstEmpty implementation- Parameters:
obj- the object to check for JSP like emptiness
-
localize
public static gg.jte.Content localize(java.lang.String key)
Dummy localization method. UsuallyLocalizationSupportin a thread local will help you implement this method.- Parameters:
key- the localization key- Returns:
- a localized content
-
localize
public static gg.jte.Content localize(java.lang.String key, java.lang.Object... params)Dummy localization method. UsuallyLocalizationSupportin a thread local will help you implement this method.- Parameters:
key- the localization keyparams- parameters for
-
-