Click here to Skip to main content
15,898,995 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
these are my jsp pages.

index.jsp
---------
<pre lang="xml"><input type="checkbox" id="check" onclick="popUpVideos('play.do', '300', '350', '600', '150', 'playlist_popup.xml'); return false;"/>
  <%

       ResultSet rs1=st.executeQuery("select * from music_details join music on      music_details.music_id=music.music_id and music.music_id='"+mid+"' ");
       System.out.println("after query");
      while(rs1.next())
        {
        String duration=rs1.getString("duration");
                //System.out.println("duration.........."+duration);
                int dlen=duration.length();
               // System.out.println(dlen+".....................jgjg"+duration);
                time1=(duration.substring(0, dlen-3));
                //System.out.println("time---------------"+time1);
                List songs=new ArrayList();
                songs.add(rs1.getString("songtitle"));
                request.setAttribute("songs",songs);
         %>
           <bean:define id="ID1" type="java.lang.String">
          <%=rs1.getString("songtitle")%>
         </bean:define>
          <div class="songlist">
          <div class="checkbox">&lt;input type="checkbox" name="check" value="
           <%=rs1.getString("songtitle")%>" class="td">&lt;/input>
           <div class="song">
            &lt;html:link page="#"  onclick="popUpVideos('play.do?song=${ID1}', '300', '350',
          '600', '150', 'playlist_popup.xml'); return false;"><span class="title3">
              <%=rs1.getString("songtitle")%>[<%= time1%>]</span>&lt;/html:link>
         </div>
              </div>
                <div class="artist">
                    <span class="heading3">Artist:</span><span class="heading2"><%=rs1.getString("artist")%></span>
                </div>
                <div class="lyricist">
                    <span class="heading3">Lyricist:</span><span class="heading2"><%=rs1.getString("lyricist")%></span>
                </div>
          </div>
          <%}%>

</pre>

play.jsp
---------

<pre lang="xml">
String check[]= request.getParameterValues(&quot;song&quot;);
for(int i=0; i&lt;check.length; i++)
{
%&gt;
&lt;li&gt;&lt;%=check[i]%&gt;&lt;/li&gt;
&lt;%
}
%&gt;</pre>


how to get all check box values to next page when i click on playall.
please help.

Thanks in advance.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900