Fork me on GitHub

HST Component Utilility

org.onehippo.forge.utilities.hst.CompUtil

Static utility class with following methods:

    HippoBean getBean(comp, request, path)

    String getParameter(comp, request, paramName, defaultValue)
    int getParameterInt(comp, request, paramName, defaultValue)
    boolean getParameterBoolean(comp, request, paramName)
    boolean getParameterBoolean(comp, request, paramName, defaultValue)
    List<String> getParameterList(comp, request, paramName)

    String getLocalParameter(comp, request, paramName, defaultValue)
    int getLocalParameterInt(comp, request, paramName, defaultValue)
    boolean getLocalParameterBoolean(comp, request, paramName, defaultValue)

    int getRequestParameterInt(request, paramName, defaultValue)

    String getPublicRequestParameter(comp, request, paramName, defaultValue)
    int getPublicRequestParameterInt(comp, request, paramName, defaultValue)
    String[] getPublicRequestParameters(comp, request, paramName)