You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by kaori hattanda <k-...@nri.co.jp> on 2015/03/16 10:19:56 UTC
How to use Jasper to Parse JSP
Dear Jasper
I develop a tool for JSP's static code analysis.
I would like to use parse result of jsp files for my tool.
I am assuming that the result is a syntax tree.
Would you tell me how to use the syntax tree from external programs?
Best Regards,
Kaori Hattanda
--
--------------------------------------------------------
Kaori Hattanda
Systems Engineer
Systems Infrastructure Development Department
Center for Solution Development
Nomura Research Institute,Ltd.
TEL: +81-45-335-9172
E-Mail: k-hattanda@nri.co.jp
--------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: How to use Jasper to Parse JSP
Posted by Mark Thomas <ma...@apache.org>.
On 16/03/2015 09:19, kaori hattanda wrote:
> Dear Jasper
>
> I develop a tool for JSP's static code analysis.
>
> I would like to use parse result of jsp files for my tool.
> I am assuming that the result is a syntax tree.
Assumptions are never a good idea.
Take a look at the source code for Jasper to see where JSP parsing is
done and the form that the results take. Hint: look in the
org.apache.jasper.compiler package.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org