title: pass values from jsp to servlet using hrefff
body: <p>Hi I have problem in my code.
  In JSP page </p>
  
  <pre><code>&lt;a href="readnews?id=${n.id}"&gt;Read more&lt;/a&gt;
  </code></pre>
  
  <p>In server </p>
  
  <pre><code>String id = request.getParameter("id");    
  try {
      News detailnews = DAO.getDetailsNews(id);
      request.setAttribute("news", detailnews);        
  } catch (ClassNotFoundException | SQLException ex) {
      Logger.getLogger(readnews.class.getName()).log(Level.SEVERE, null, ex);
  }
  </code></pre>
  
  <p>but <code>id = null</code> when I run
  Help me please!!!
  Thanks!</p>