title: Show dynamic cell color for range coming from servlet in jsp
body: <p>I am trying to make a simple web application based on Inventory management system. My question is as below, </p>
  
  <p>I am fetching product data from database to a servlet which includes it's quantity.And I want to show that data in my JSP in a tabular format.I also want to change the cell color of quantity dynamically based on some threshold value.like .. if my threshold is 50 then</p>
  
  <p>if quantity &lt; 49 then cell color should be Red</p>
  
  <p>if quantity > 51 then cell color should be Blue</p>
  
  <p>if quantity is 50,49 or 51 then cell color should be Green.</p>
  
  <p>How to implement that code ??</p>