Can we render HTML content from Java action

0
Hi,  I Have a requirement to render a HTML content like a full HTML page from Java action . Below is one sample content. any one know how to show a html from java action. pls give your suggestion httpResponse.setContentType("text/html"); ServletOutputStream out = httpResponse.getOutputStream(); // send HTML page to client out.println("<html>"); out.println("<head><title>A Test Servlet</title></head>"); out.println("<body>"); out.println("<h1>Test</h1>"); out.println("<p>Simple servlet for testing.</p>"); out.println("</body></html>");    
asked
1 answers
2

To my knowledge this can not be done directly. But what you could do is return the HTML as string back to Mendix. And then use the HTML/ JavaScript Snippet ( https://marketplace.mendix.com/link/component/56 ) to display that string.

Regards,

Ronald

 

answered