This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I went to be able to generate a dynamic form based upon an XML document that is read into the application.
The XML will determine which form fields, etc will need to be populated in the form.
My problem is that the output form fields need to contain JSP tags, so I need a servlet to dynamically create the JSP output. This bit isn't too hard...my problem is that I need to somehow get the JSP container to process the servlet output as if it were a standard JSP document.
Any ideas? BTW, I'm using JBoss, however the ideal solution would not be tied to any particular product.
Just in case this statement gets misconstrued -- actually the combination of Servlets and JSP is a match made in heaven: Servlets to perform the processing, JSP to render the view. What you can't do -- which is what I'm sure Jeanne meant -- is to emit JSP syntax from a Servlet and expect it to be interpreted.
If you'd like to use JSP for this project you might want to look into the 'x' tags of the JSTL. [ November 08, 2005: Message edited by: Bear Bibeault ]