You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by t-zhang <t-...@nri.co.jp> on 2015/01/27 12:36:52 UTC
How to use Jasper to Parse JSP
Hi guys
I am looking for a tool which can parse the JSP code(parse and generate
the AST)
If anyone use Jasper to parse the JSP,
Could you share your experience to me?
I guess the class "org.apache.jasper.compiler.Parser" in Jasper is able
to generate the AST.
But I can't get the Return Value maybe because of I can't import
org.apache.jasper.compiler.Node to my project.
Best Regards
Tao Zhang
---------------------------------------------------------------------
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 t-zhang <t-...@nri.co.jp>.
Dear Christopher
> What do you want your checker to do? Anything more than make sure that
> the JSP will compile?
Yes, I need a source code analyzer.
Which one will not only make sure that the JSP will compile.
Best Regards
On Thu, 29 Jan 2015 10:34:23 -0500
Christopher Schultz <ch...@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Zhang,
>
> On 1/29/15 7:22 AM, t-zhang wrote:
> > I need a JSP codecheck tool (like PMD) But PMD's JSP parser is not
> > enouth. So I need a better JSPparser and I want to try Jasper as a
> > parser.
>
> What do you want your checker to do? Anything more than make sure that
> the JSP will compile?
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJUylL/AAoJEBzwKT+lPKRYyhMP/3tpzTkw6rdvVhjDR6nbi7LK
> aDjDfpI7fLiIfjf78Bjzxg7Nfkd9hINTI3GDA+iOqNPdyo5i9RN25IW/mYzH4qT5
> CGgcf5jgiz0K2a5GqJ3ZRSML+3Dq4RSEZpfwcogmAVHBWy+je4yeD/usAQSyQUxt
> llcbobvJ/nGsy5TmbUZddEP5z8G+ELuaO5DAvhwDmvzASCtZiGeoEwh1UzOdAsEb
> g/4IjJA1TjGfiDkm43gja039gI+xjLPAsv+rXFV0SChV3VlqMsoB3l0gWXnfuF57
> IiGDo/qaBgXUBb9HjgtDt4vKHFR+xc9Jn5dwnR6xJAxOSKh2NFY/BaY+TsmGLanX
> YzRL4de497ziJXWduUXSAx36ldyUD6AHodBb+dl5XLvXIJ23y9B8MCrunYUoTDvK
> kzwuxEYB8YZGN8zxALlp2ImV0n38RwXGpnVmcx+1ePvjw01OTAqsokHT/jt5sYAG
> cPxKyCmhDzMO/KErgsgkbbBseqwzJ6QCIWcIYmak/2ADrAVv4/npaPNUcyHBjfS5
> f4FrTjFBlfjJtBjvisiVWG+dYHGdW5lb7dKloMSEwoPSNQeBj1byeXJToEWz2ymX
> aG+4si177FdRw3SBjKYwCzhL/M8V3wLKmwyUUg1E0AZQkDaNd8/DU7THaUjCLFlS
> qjY8EM8HetXHdRsre5nE
> =7+p8
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
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 Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Zhang,
On 1/29/15 7:22 AM, t-zhang wrote:
> I need a JSP codecheck tool (like PMD) But PMD's JSP parser is not
> enouth. So I need a better JSPparser and I want to try Jasper as a
> parser.
What do you want your checker to do? Anything more than make sure that
the JSP will compile?
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
iQIcBAEBCAAGBQJUylL/AAoJEBzwKT+lPKRYyhMP/3tpzTkw6rdvVhjDR6nbi7LK
aDjDfpI7fLiIfjf78Bjzxg7Nfkd9hINTI3GDA+iOqNPdyo5i9RN25IW/mYzH4qT5
CGgcf5jgiz0K2a5GqJ3ZRSML+3Dq4RSEZpfwcogmAVHBWy+je4yeD/usAQSyQUxt
llcbobvJ/nGsy5TmbUZddEP5z8G+ELuaO5DAvhwDmvzASCtZiGeoEwh1UzOdAsEb
g/4IjJA1TjGfiDkm43gja039gI+xjLPAsv+rXFV0SChV3VlqMsoB3l0gWXnfuF57
IiGDo/qaBgXUBb9HjgtDt4vKHFR+xc9Jn5dwnR6xJAxOSKh2NFY/BaY+TsmGLanX
YzRL4de497ziJXWduUXSAx36ldyUD6AHodBb+dl5XLvXIJ23y9B8MCrunYUoTDvK
kzwuxEYB8YZGN8zxALlp2ImV0n38RwXGpnVmcx+1ePvjw01OTAqsokHT/jt5sYAG
cPxKyCmhDzMO/KErgsgkbbBseqwzJ6QCIWcIYmak/2ADrAVv4/npaPNUcyHBjfS5
f4FrTjFBlfjJtBjvisiVWG+dYHGdW5lb7dKloMSEwoPSNQeBj1byeXJToEWz2ymX
aG+4si177FdRw3SBjKYwCzhL/M8V3wLKmwyUUg1E0AZQkDaNd8/DU7THaUjCLFlS
qjY8EM8HetXHdRsre5nE
=7+p8
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
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 t-zhang <t-...@nri.co.jp>.
Thanks for your reply.
I need a JSP codecheck tool (like PMD)
But PMD's JSP parser is not enouth.
So I need a better JSPparser and I want to try Jasper as a parser.
Best Regards
Tao Zhang
On Tue, 27 Jan 2015 11:56:42 +0000
Mark Thomas <ma...@apache.org> wrote:
> On 27/01/2015 11:36, t-zhang wrote:
> > Hi guys
> >
> > I am looking for a tool which can parse the JSP code(parse and generate
> > the AST)
>
> Why? What problem are you trying to solve? (There may be a better solution).
>
> Mark
>
>
> > If anyone use Jasper to parse the JSP,
> > Could you share your experience to me?
> >
> > I guess the class "org.apache.jasper.compiler.Parser" in Jasper is able
> > to generate the AST.
> > But I can't get the Return Value maybe because of I can't import
> > org.apache.jasper.compiler.Node to my project.
> >
> > Best Regards
> >
> > Tao Zhang
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
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 27/01/2015 11:36, t-zhang wrote:
> Hi guys
>
> I am looking for a tool which can parse the JSP code(parse and generate
> the AST)
Why? What problem are you trying to solve? (There may be a better solution).
Mark
> If anyone use Jasper to parse the JSP,
> Could you share your experience to me?
>
> I guess the class "org.apache.jasper.compiler.Parser" in Jasper is able
> to generate the AST.
> But I can't get the Return Value maybe because of I can't import
> org.apache.jasper.compiler.Node to my project.
>
> Best Regards
>
> Tao Zhang
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org