public final class CmsPdfFormatterUtils extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
executeJsp(CmsObject cms,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
CmsResource jsp,
CmsResource content)
Executes a JSP with a given content as input and returns the output of the JSP.
|
public static byte[] executeJsp(CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, CmsResource jsp, CmsResource content) throws java.lang.Exception
cms
- the current CMS contextrequest
- the current requestresponse
- the current responsejsp
- the jsp resource to executecontent
- the content to render with the JSPjava.lang.Exception
- if something goes wrong