Class TemplateRendererUtil


  • public class TemplateRendererUtil
    extends Object
    Utility class used to render HTML templates to end users during runtime processing. For example, this class can be used to display a login form to an end user during an SSO transaction.
    Since:
    7.1 R2
    • Method Detail

      • render

        public static void render​(javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse resp,
                                  String templateFile,
                                  Map<String,​Object> params)
                           throws TemplateRendererUtilException
        Renders the defined template file to an end user.
        Parameters:
        req - The HttpServletRequest associated with the current transaction.
        resp - The HttpServletResponse associated with the current transaction.
        templateFile - The filename of the template to render.
        params - A map of parameters that is passed into the selected template as variables.
        Throws:
        TemplateRendererUtilException - A general exception for any unexpected runtime errors that might occur during template rendering.