Class UIUtil

java.lang.Object
com.jalios.jcms.member.profile.ui.UIUtil

public class UIUtil extends Object
UI utilities.
Since:
jplatform-11
Author:
Sylvain Devaux
  • Field Details

    • LOGGER

      protected static final org.apache.log4j.Logger LOGGER
  • Constructor Details

    • UIUtil

      public UIUtil()
  • Method Details

    • canIncludeJsp

      public static boolean canIncludeJsp(String jsp, String property)
      Checks if given jsp path is valid, ie if file exists.
      Parameters:
      jsp - the jsp path
      property - jsp property (For logging purpose)
      Returns:
      true if JSP can be technically included
      See Also:
    • canIncludeJsp

      public static boolean canIncludeJsp(String jsp, String property, boolean validateExists)
      Checks if given jsp path is valid, ie if file exists.
      Parameters:
      jsp - the jsp path
      property - optional property declaring the JSP (For logging purpose)
      validateExists - will validate a JSP file exist relatively from the webapp
      Returns:
      true if JSP can be technically included
    • getProperty

      public static String getProperty(String property, String suffix)
    • isJunit

      protected static boolean isJunit()