Hello all, I have a project i'm working on, that has the following view requirement:
1) have a known filesystem directory into which static html files can be placed. these html files have a marker somewhere in the body tag that says <!-- dynamcStuffHere -->. The marker could be anything, that is just an example. 2) my struts application builds html forms from a set of definitions in a database. so it looks up the form in the database, creates a java model from the data in the database, and the java model knows how to render itself in html. the form also knows into which html file from step 1 above it is to be placed. I originally imagined the application as having two html files per form, a header and a footer, and i would just use jsp includes to include the appropriate one. So there'd be one jsp file like this: <c:import url="/templateDirectory/${templateHeaderFilename}" /> <c:out value="${dynamicallyCreatedForm}" /> <c:import url="/templateDirectory/${templateHeaderFilename}" /> But the customer wants to have a single html file that can be easily edited in the standard tools. So i could: 1) generate the entire page in the action using a File, doing a search and replace and then send the response myself, returning null from the action. 2) use freemarker and have struts populate the request attributes with the dynamically generated form html and the template filename, and then forward to a freemarker template that the freemarker servlet will populate with the template and form html. Any other ideas or preferences for this? Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]