/* org.apache.jasper.JspCompilationContext implements either of 2 JSP Compilers in TC7 */ if (options.getCompiler() == null) { jspCompiler = createCompiler("org.apache.jasper.compiler.JDTCompiler"); if (jspCompiler == null) { jspCompiler = createCompiler("org.apache.jasper.compiler.AntCompiler"); }
//JDTCompiler has JSR45 support here protected void generateClass(String[] smap) { ........ if (! options.isSmapSuppressed()) { SmapUtil.installSmap(smap); } } // AntCompiler has JSR45 Support protected void generateClass(String[] smap) { ............. if (! options.isSmapSuppressed()) { SmapUtil.installSmap(smap); } } does this answer your question? 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: Mon, 14 Mar 2011 16:53:34 -0400 > From: eshe...@gmail.com > To: users@tomcat.apache.org > Subject: Read JSR 045 SMAP Files Produced by Jasper > > List, > > I am developing an application that programmatically leverages the > Apache Jasper JspC facilities to translate JSP source files into their > Java (Servlet) equivalents. For this application, I need to be able to > translate a Java line number back to the original JSP line number. I > have JspC producing SMAP files which should contain most/all the > information I need. However, I am having trouble finding any existing > open source libraries that have the ability to parse JSR 045 SMAP files. > I was hoping to come across an open source library that offered API such as: > > SmapParser parser = new SmapParser(inputStream); > Smap smap = parser.parse(); > int jspLineNumber = smap.getJspLineNumber(javaLineNumber); > > Does any such code exist? If so, would you mind pointing me to > it? If not, any alternative solutions to looking up the original JSP > line number given that I am working with Apache Jasper? > > -Eric > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org >