Package example

Class JteContext

java.lang.Object
example.JteContext

public class JteContext extends Object
Dummy jte context, how you might use it in your project. Contains helper methods for a JSP migration
  • Constructor Details

    • JteContext

      public JteContext()
  • Method Details

    • isEmpty

      public static boolean isEmpty(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(String key)
      Dummy localization method. Usually LocalizationSupport in 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(String key, Object... params)
      Dummy localization method. Usually LocalizationSupport in a thread local will help you implement this method.
      Parameters:
      key - the localization key
      params - parameters for