We are using Spring 3 and Apache Tiles to create web application that runs on Tomcat 7.
Is it possible, using those tools to manually generate HTML from JSP files in java code during runtime?
For example, I have sample.jsp
with some dynamically generated content based on a contents of a passed model. I would like to store rendered HTML from JSP in String object.
On a very high level of abstraction:
String renderedHtml=renderHtmlFromJSP(jspName,model);
If not, is it possible to dynamically change definition of Tiles elements? For example
<put-attribute name="headerRight" value="dynamically_set_value" />
?