title: Generate a dynamic Menu in my jsp from Database in JSP
body: <p>i need to display a dynamic menu bar on my jsp pages depending on the user role (user , admin) </p>
  
  <p><a href="https://i.stack.imgur.com/kSTeT.gif" rel="nofollow noreferrer">this is my code servlet</a></p>
  
  <p><a href="https://i.stack.imgur.com/kSTeT.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kSTeT.gif" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/zxNaP.gif" rel="nofollow noreferrer">jsp code</a></p>
  
  <p><a href="https://i.stack.imgur.com/zxNaP.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zxNaP.gif" alt="enter image description here"></a></p>
  
  <p>my problem is when i click on the menu to navigate between pages, it displays </p>
  
  <blockquote>
    <p>org.apache.jasper.JasperException: java.lang.NullPointerException</p>
  </blockquote>