File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven - JSP Static Code Analysis

 
Anish Pyne
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there any Maven plugins or stand alone tools available to do static analysis of JSP code? I am handling a very old application with lots of JSPs having badly coded scriplets in them. Getting rid of all the scriplets will take a long time hence next best is to improve the code as much as possible. Need something similiar like FindBugs which does awesome code analysis of .java code.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33671
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PMD will look at JSPs. It has a Maven plugin, but PMD only works on well formed JSP files. I recommend writing your own pre-processort to get rid of the HTML code to "simulate" well formedness and then run PMD via the Maven plugin.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic