title: Java : show web content under condition using MVC
body: <p>I want to show some content in JSP page under some condition:</p>
  
  <pre><code>    if(db_controller.getClientNumber()&gt;1){
          out.print("&lt;span&gt;You have &lt;a href=\"View.jsp?type=Client\" style=\"color:#31708f\"&gt;" +
                  db_controller.getClientNumber()+ 
                      " &lt;/a&gt;clients&lt;/span&gt;");
      }
  </code></pre>
  
  <p>The problem is, as I'm rewriting my code to fit MVC pattern, I don't know how to handle the conditions.</p>
  
  <p>If I don't do a comparison <code>if(db_controller.getClientNumber()&gt;1)</code> in my JSP page, how can I show content (view) according to different conditions?</p>
  
  <p>What is the proper way to do this in MVC design pattern ?</p>