title: how to connect notification menu with database in java
body: <p>I have one menu option in that leave request is the menu it will display like notification if there will be any notification, so suppose when employee is raising the request for leave and only one employee has raised the request then it should display 1 notification if 2 employee will raise the request then it should increase 2 and now second thing after clicking on notification it should display first person leave request on the jsp page i am totally confused how to start this i have just start with small thing here is my code....please anyone help me and suggest me some logic and ideas.. </p>
  
  <pre><code>  &lt;style&gt;
  
   .badge1 {
  position:relative;
     }
      .badge1[data-badge]:after {
    content:attr(data-badge);
    position:absolute;
    top:-10px;
   right:-10px;
    font-size:.7em;
    background:green;
    color:white;
      width:18px;height:18px;
       text-align:center;
         line-height:18px;
       border-radius:50%;
     box-shadow:0 0 1px #333;
   }
  
  
  &lt;/style&gt;
   &lt;/head&gt;
      &lt;body&gt;
  
        &lt;br&gt;
     &lt;a href="" class="badge1" data-badge="27"&gt;Badge Notification Example&lt;/a&gt;
     &lt;/body&gt;
    &lt;/html&gt;
  </code></pre>