<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"><input type="checkbox" name="check" value=" <%=rs1.getString("songtitle")%>" class="td"></input> <div class="song"> <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></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("song"); for(int i=0; i<check.length; i++) { %> <li><%=check[i]%></li> <% } %></pre>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)