All Downloads are FREE. Search and download functionalities are using the official Maven repository.

resources.report.rules.pmd.Basic_JSP_rules.html Maven / Gradle / Ivy

Go to download

Sanity4J was created to simplify running multiple static code analysis tools on the Java projects. It provides a single entry point to run all the selected tools and produce a consolidated report, which presents all findings in an easily accessible manner.

There is a newer version: 1.8.2
Show newest version


Basic_JSP_rules


Basic_JSP_rules

ic_JSP_rules">

Basic JSP rules

  • NoLongScripts: Scripts should be part of Tag Libraries, rather than part of JSP pages.
  • NoScriptlets: Scriptlets should be factored into Tag Libraries or JSP declarations, rather than being part of JSP pages.
  • NoInlineStyleInformation: Style information should be put in CSS files, not in JSPs. Therefore, don't use <B> or <FONT> tags, or attributes like "align='center'".
  • NoClassAttribute: Do not use an attribute called 'class'. Use "styleclass" for CSS styles.
  • NoJspForward: Do not do a forward from within a JSP file.
  • IframeMissingSrcAttribute: IFrames which are missing a src element can cause security information popups in IE if you are accessing the page through SSL. See http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q261188
  • NoHtmlComments: In a production system, HTML comments increase the payload between the application server to the client, and serve little other purpose. Consider switching to JSP comments.
  • DuplicateJspImports: Avoid duplicate import statements inside JSP's.
  • JspEncoding: A missing 'meta' tag or page directive will trigger this rule, as well as a non-UTF-8 charset.




  • © 2015 - 2024 Weber Informatics LLC | Privacy Policy