dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: pass parameters from jsp to another jsp

  1. #1
    Join Date
    Mar 2012
    Posts
    2

    pass parameters from jsp to another jsp

    i have few video filepath in db and have load them to jsp call viewvideo.jsp each video as links. i wanna play the video which i click jest using java and html

    here the cord in viewvideo.jsp
    <%
    try {
    ResultSet resulset = jdbc.getdata("select * from video");

    %>
    <form >
    <table >

    <%
    while (resulset.next()) {
    %>
    <tr>
    <td><input type="hidden" value="play" name="<%=resulset.getString(3)%>" ><a href="twovedio.jsp"><%=resulset.getString(3)%></a></td>
    </tr>
    <%}%>
    </table>
    </form>
    <%} catch (Exception e) {
    }%>

    here the cord in twovedio.jsp
    <% String video_path = request.getParameter("name");
    if (video_path != null) {
    %>
    <object
    width="545"
    height="350"
    data="http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf"
    type="application/x-shockwave-flash"
    >
    <param
    name="movie"
    value="http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf"
    />
    <param
    name="allowfullscreen"
    value="true" />
    <param
    name="allowscriptaccess"
    value="always"
    />
    <param
    name="flashvars"
    value='config={"plugins":{"pseudo":{"url":"flowplayer.pseudostreaming-3.1.3.swf"},"controls":{"backgroundColor":"#000000","backgroundGradient":"low"}},"clip":{"provider": "pseudo","url":"Upload_video/<%= video_path%>"},"playlist":[{"provider":"pseudo","url":"Upload_video/<%= video_path%>"}]}' />
    </object>
    <%} else {

    %>

    <h1>[[[redacted]]]</h1>

    <%}%>


    error says String video_path = request.getParameter("name"); parameter value is null video doesn't play

    please help i am really new to thesethings

  2. #2
    Join Date
    Mar 2012
    Posts
    2
    You are using request.getParameter("name")
    in the 2nd JSP. But where did u set the parameter 'name'??

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles