title: i cant recive any response from success: function(status)
body: <p>This is my ajax part</p>
  
  <pre><code>    $.ajax({
          type:"GET",            
          data: 'name='+ value,
          url: "master/Valid.jsp",
          success: function(status){                
                if(status)
                     return true;
                else
                     return false;
          }
      });
  </code></pre>
  
  <p>this is my valid.jsp page</p>
  
  <pre><code>    &lt;%     
     String s1 = request.getParameter("name");       
      int check =  new DBDepartment().addDepartment(s1, 1);     
       if(check==1)
          return false; //in this line it shows error     
      %&gt;  
  </code></pre>
  
  <p>how can we send return the value either true or false.</p>