title: How to Pass more than one data of select option from one page to another without javascript
body: <p>i have a webpage as a.jsp with following code</p>
  <pre><code>&lt;form method=&quot;post&quot; action=&quot;selector.jsp&quot;&gt;
      &lt;select name=&quot;select&quot; id=&quot;dropdown&quot;&gt;        
          &lt;Option data-name=&quot;a&quot; value=&quot;1&quot;&gt;a&lt;/Option&gt;
          &lt;Option data-name=&quot;b&quot;  value=&quot;2&quot;&gt;b&lt;/Option&gt;
          &lt;Option data-name=&quot;c&quot;  value=&quot;3&quot;&gt;c&lt;/Option&gt;
           &lt;Option data-name=&quot;d&quot;  value=&quot;4&quot;&gt;d&lt;/Option&gt;       
             &lt;/select&gt;
      &lt;input type=&quot;submit&quot; value=&quot;click&quot;&gt; 
    &lt;/form&gt;
  </code></pre>
  <p>and i have a webpage as b.jsp with following code</p>
  <pre><code> &lt;body&gt;   
      &lt;%
         request.getParameter(&quot;select&quot;);     
         out.println(request.getParameter(&quot;select&quot;));
      %&gt;
     &lt;/body&gt;
  </code></pre>
  <p>I need pass the both &quot;data-name&quot; and &quot;value&quot; of selected option from a.jsp to b.jsp wihtout any script involved</p>