title: Java: how to debug an invalid JSTL declaration?
body: <p>I've seen this kind of issue on SO (and on the Net overall) quite a few times.  For example here:</p>
  
  <p><a href="https://stackoverflow.com/questions/1884529">JSPX namespaces not visible for EL functions?</a></p>
  
  <p>Earlier today I was trying on a JSP (regular .jsp, not .jspx) to do this, because I stupidly cut/pasted some example found on the net:</p>
  
  <pre><code>&lt;%@ taglib prefix = "c" uri = "http://java.sun.com/jstl/core"%&gt;
  </code></pre>
  
  <p>Then my .jsp was giving a blank page.  No error message in the Tomcat log. No nothing. Just a blank page.</p>
  
  <p>While, <em>of course</em> (I'm being sarcastic here), the correct line was this:</p>
  
  <pre><code>&lt;%@ taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core"%&gt;
  </code></pre>
  
  <p>There was a "jsp/" missing (which I found a hint to in yet another SO question).</p>
  
  <p>So obviously such issues are common.</p>
  
  <p>I can't believe you have to wait for things "not to work" to know you've there's an error and I'm honestly a bit confuzzabled by the number of questions found on the net (and here on SO) where the answer is basically "fix your declaration".</p>
  
  <p>My question here is simple: how do you know that it's a declaration issue?  What thought process is required here to diagnose and troubleshoot such issues?  Are there tools that can help here? (I don't know, like, say, IntelliJ IDEA or Eclipse or Emacs in nxml-mode warning you in real time that the declared URI is invalid?)</p>