title: How to do if Jsp form fields are Empty or Null
body: <p>Hi I am Developing JSP Form.If Jsp form fields are Empty or Null i wanted to print or update that blank fields as N/A. How can i do this?</p>
  
  <pre><code>&lt;td&gt;&lt;s:textfield name="surname" id="surname"  maxlength="50"
                   cssClass="TextBox" cssStyle="width:180px;"/&gt;&lt;/td&gt;
  &lt;td&gt;&lt;s:textfield name="forename" id="forename" maxlength="50"
                   cssClass="TextBox" cssStyle="width:180px;"/&gt;&lt;/td&gt;
  &lt;td&gt;&lt;s:textfield name="fullname" id="fullname" maxlength="100" 
                   cssClass="TextBox" cssStyle="width:180px;" /&gt;&lt;/td&gt;
  </code></pre>
  
  <p>If User not entered forename then value should be update 'NA' in database. </p>