title: Checking JSP Input for "Empty"
body: <p>In my testing, the following seems to cover everything I can think of in terms of ensuring that a field is populated.  Can anyone think of a case I might have missed?</p>
  
  <pre><code>public static boolean isEmpty(final String string) {
      return string != null &amp;&amp; !string.isEmpty() &amp;&amp; !string.trim().isEmpty();
  }
  </code></pre>