title: Open mutiple pdf files in separate tabs
body: <p>Hi I am trying to open multiple pdf files on a click , I am trying in this way.</p>
  
  <p>Considering user will select multiple options to get pdf files by selecting multiple radio buttons.</p>
  
  <pre><code>&lt;html&gt;
   &lt;head&gt;
    &lt;title&gt;sendRedirect Program using Servlet&lt;/title&gt;
   &lt;/head&gt;
   &lt;body&gt;
    &lt;form name="pdf" target="_blank" method="get" action="http://localhost:8080/SendRedirectProg/sr"&gt;
    &lt;table border="1" width="500"&gt;
     &lt;tr&gt;
      &lt;td&gt;Select PDF:&lt;/td&gt;
      &lt;td&gt;&lt;INPUT type="radio" name="pdf" size="20" value="PDF 1"&gt;PDF 1
            &lt;INPUT type="radio" name="pdf" size="20" value="PDF 2"&gt;PDF 2
            &lt;INPUT type="radio" name="pdf" size="20" value="PDF 3"&gt;PDF 3&lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr&gt;
      &lt;td&gt;&lt;INPUT type="submit" size="20"&gt;&lt;/td&gt;
     &lt;/tr&gt;
    &lt;/form&gt;
    &lt;/table&gt;
   &lt;/body&gt; &lt;/html&gt;
  </code></pre>
  
  <p>So consider uer will select all 3 radio buttons and I want to open all these pdf files in different tabs.</p>
  
  <p>I am trying in this way.</p>
  
  <pre><code> import java.io.*;
  import javax.servlet.*;
  import javax.servlet.http.*;
  public class SendRedirectProg extends HttpServlet
  {
    public void method(ActionRequest req, ActionResponse res) throws 
   {
    PrintWriter p=res.getWriter();
    res.setContentType("text/plain");
    String s=req.getParameter("pdf");
    if(s.equals("PDF 1") &amp;&amp; s.equals("PDF 2") &amp;&amp; s.equals("PDF 3"))
    {
     res.sendRedirect("http://localhost:8080/SendRedirectProg/DemoPDF1.pdf");
      res.sendRedirect("http://localhost:8080/SendRedirectProg/DemoPDF2.pdf");
       res.sendRedirect("http://localhost:8080/SendRedirectProg/DemoMCA 3.pdf");
    }
   }
  </code></pre>
  
  <p>but it only displays last one, I am understanding use of res.sendRedirect, but still how we can achieve this ?</p>
  
  <p>Any suggestions?</p>