title: Processing form after modal submit in JSP
body: <p>I am displaying a modal after a button click . The code of button for opening a modal is as follows : </p>
  
  <pre><code> &lt;button type="button" name="btnEditIP" data-toggle="modal" data-target="#myModal" class="sultan_btn"&gt;Edit IP&lt;/button&gt;\
  </code></pre>
  
  <p>The code of modal is as follows : </p>
  
  <pre><code>&lt;div id="myModal" class="modal fade"&gt;
       &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
              &lt;form id="ipForm" class="form-horizontal" role="form" method="post" action="info_edit.jsp"&gt;
                    &lt;div class="modal-header modal-header-warning"&gt;
                        &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;
                            &lt;h4 class="modal-title "&gt;Please Enter IP Address&lt;/h4&gt;
                    &lt;/div&gt;
  
                    &lt;div class="modal-body"&gt; 
                       &lt;div class="form-group"&gt;
                            &lt;label for="inputName"&gt;IP Address&lt;/label&gt;
                            &lt;input type="text" class="form-control" name="ip"/&gt;
                   &lt;/div&gt; 
  
                   &lt;/div&gt;
                   &lt;div class="modal-footer"&gt;
                      &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Cancel&lt;/button&gt;
                      &lt;button type="button" name="btnSave" id="btnSave" class="btn btn-primary" data-dismiss="modal"&gt;Save&lt;/button&gt;
                   &lt;/div&gt;
              &lt;/form&gt;
          &lt;/div&gt;
     &lt;/div&gt;
  </code></pre>
  
  <p> </p>
  
  <p>In edit_info.jsp page, I am trying to determine whether the btnSave button is pressed by the following code : </p>
  
  <pre><code>if ((request.getParameter("btnSave") == null) ? false : true) {
        out.println("Form submitted");
  }
  else{
       out.println("Form not submitted");
  }
  </code></pre>
  
  <p>Although , I am pressing the Save button in modal , I am always getting this message , "Form not submitted!" .That means , either the form is not submitted or there is an error in pressing button . </p>
  
  <p>I am not sure where is the error . I have tried a lot but could not identified where is the error . Please help me to solve this error . </p>