title: Suppressing Java unchecked warnings in JSP files
body: <p>I have a legacy webapp which uses jstl and Struts 1 tags. When I pre-compile the JSP files with Java 5/6, the jstl and Struts 1 tags throw warnings about "unchecked or unsafe operations". For example, if I use the following tag:</p>
  
  <pre><code>&lt;%@ page import="/anotherpage.inc" %&gt;
  </code></pre>
  
  <p>The following warning is thrown:</p>
  
  <blockquote>
  <pre><code>[javac] Note: Some input files use unchecked or unsafe operations.
  [javac] Note: Recompile with -Xlint:unchecked for details.
  </code></pre>
  </blockquote>
  
  <p>If I recompile with -Xlint:unchecked, I get details about the internal working of the offending JSP tag library. I would like to suppress all unchecked operation warnings. I thought that using -Xlint:-unchecked would suppress the warnings, but it did not.</p>
  
  <p>How do I suppress these warnings when compiling my JSP pages? It would not be practical to  re-code the JSP tag libraries or update a thousand JSP pages. I'm looking for a compiler flag to globally disable the warning so I can see all warnings except for unchecked warnings. Thanks!</p>