title: JSP and JSTL conditionally render rows in table based on rule
body: <p>I have the following in JSP page</p>
  
  <pre><code> &lt;table border=1&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;th&gt;User Id&lt;/th&gt;
                  &lt;th&gt;First Name&lt;/th&gt;                
                  &lt;th&gt;DOB&lt;/th&gt;                
                  &lt;th colspan=2&gt;Action&lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
              &lt;c:forEach items="${users}" var="user"&gt;
                  &lt;tr&gt;
                      &lt;td&gt;&lt;c:out value="${user.userid}" /&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;c:out value="${user.firstName}" /&gt;&lt;/td&gt;                    
                      &lt;td&gt;&lt;fmt:formatDate pattern="dd-MMM-yy" value="${user.dob}" /&gt;&lt;/td&gt;                    
                      &lt;td&gt;&lt;a href="UserController?action=edit&amp;userId=&lt;c:out value="${user.userid}"/&gt;"&gt;Update&lt;/a&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;a href="UserController?action=delete&amp;userId=&lt;c:out value="${user.userid}"/&gt;"&gt;Delete&lt;/a&gt;&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/c:forEach&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;p&gt;&lt;a href="UserController?action=insert"&gt;Add User&lt;/a&gt;&lt;/p&gt;
  </code></pre>
  
  <p>A normal user is allowed to enter only 10 rows by clicking <strong>Add User</strong> button, administrator could enter any number of rows to the table.</p>
  
  <p>Rows added by administrator can only be viewed by administrators and all the other rows added by normal user, but normal user cannot view rows added by administrators.</p>
  
  <p>How can I conditionally render rows in JSP based on the above mentioned rule?</p>
  
  <p>Thanks </p>