#28476

Before

pd4ml.render();

call in your servlet code you need to invoke

pd4ml.useHttpRequest(httpRequest, httpResponse);

(where parameters are HttpServletRequest httpRequest and HttpServletResponse httpResponse)