Zimmer http://www.jarfinder.com/index.php/jars/versionInfo/4589
Viel Gluck
Martin  
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
 

 > Date: Sat, 9 Mar 2013 14:39:23 +0100
> Subject: Compiling JSPs at runtime
> From: fb666fb...@gmail.com
> To: users@tomcat.apache.org
> 
> Hello!
> 
> I'm working on a WCMS system where I want to compile some view components
> at runtime. I found the Jasper howto to compile using Ant, but that's not
> what I need.
> 
> I have dynamic JSP code stored in a database.
> 
> Simplified I want to do something like this:
> 
> protected void doRequest(HttpServletRequest request, HttpServletResponse
> response) throws ServletException, IOException {
> 
> int templateId = request.getParameter("templateId");
> String jspCode = db.queryString("select jspCode from templates where id ="
> + templateId);
> Jasper jcpc = new Jasper();
> Servlet jspServlet = jspc.compile(jspCode)
> forward(jspServlet);
> 
> }
> 
> For sure this is very simplified. I know that the Jasper JSPC will need
> much more configuration/environment set.
> 
> Can someone point me to the right classes to start?
> 
> Thanks,
> Gerd
                                          

Reply via email to