[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Auto generating JSPs

PeterJ do-not-reply at jboss.com
Fri Aug 3 11:31:24 EDT 2007


The problem is that by the time the code in the JSP runs, and this includes the code in the tag that is getting the 'code' out of the database, the JSP has already been compiled. So there is no way to include that 'code' in the JSP.

However, I assume that the 'code' eventually generates HTML to include in the page. Therefore, you could look into generating, and compiling, a class on the fly, using the 'code' as the body of a method that returns a string. Defining an interface that describes this method would help. 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070680#4070680

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070680



More information about the jboss-user mailing list