title: String null check
body: <p>I have tried this for 2 hours , but I've given up. I am checking the value of a String this way:</p>
  
  <pre><code>if(value.equals("")||value.length()&lt;0||value==null)
  {
      value = "Anynomous"
  }
  </code></pre>
  
  <p>But still the string is printing the value <code>null</code>.</p>
  
  <p>Please see this program code here </p>
  
  <pre><code>&lt;HTML&gt;
  &lt;BODY&gt;
  
  &lt;%!
  String value ;
  %&gt;
  
  &lt;%
  
  value = (String)request.getAttribute("retunval");
  System.out.println("Inside New fgdf JSP");
  if(value.equals("")||value.length()&lt;0||value==null)
  value = "Anonymuos";
  
  
  %&gt;
  Hello &lt;%=value%&gt;
  
  &lt;BR&gt;
  &lt;/BR&gt;
  
  &lt;BR&gt;
  &lt;/BR&gt;
  
  &lt;a href="Test.jsp"&gt;Try Again&lt;/a&gt;
  &lt;/BODY&gt;
  &lt;/HTML&gt;
  </code></pre>