document.write('<OBJECT ID=MediaPlayer ');
document.write(' CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6');
document
.write(' standby="Loading Microsoft Windows Media Player components..."');
document
.write(' TYPE="application/x-oleobject" width="286" height="225">');
document
.write('<PARAM NAME="url" VALUE="http://localhost:8080/mdeia/测试.WMV">');
document.write('<PARAM NAME="AutoStart" VALUE="true">');
document.write('<PARAM NAME="ShowControls" VALUE="1">');
document.write('<PARAM NAME="uiMode" VALUE="mini">');
document.write('</OBJECT>');上边为我在jsp中播放视频jsp中代码,可以正常播放视频,我现在想从请求的到视频名字后,播放那个视频该怎么写谢谢

解决方案 »

  1.   


      var url=document.getElementsByName("url")[0].value
      

  2.   

    我的上一个页面是<a href="show.jsp?name=测1.wmv">测1.wmv</a><a href="show.jsp?name=测2.wmv">测2.wmv</a><a href="show.jsp?name=测3.wmv">测3.wmv</a>我的show.jsp页面里的document
    .write('<PARAM NAME="url" VALUE="http://localhost:8080/mdeia/测试.WMV">');
    测试.WMV如何换成url呢?
      

  3.   

    String _url = request.getParameter("name");document.write('<PARAM NAME="url" VALUE="http://localhost:8080/mdeia/>' + "<%= _url %>" + '"'); 
      

  4.   


    var url = "http://localhost:8080/"+"<%=request.getParameter('name')%>";
    document.write('<PARAM NAME="url" VALUE="'+url+'" >');
      

  5.   

    问题已经搞定谢谢
    我的方法如下document.write(' <PARAM NAME="url" VALUE="http://localhost:8080/media/'+'<%=request.getParameter("name")%>'+'">');
    谢谢两位
      

  6.   


    document.write(' <PARAM NAME="url" VALUE="http://localhost:8080/media/'+'${requestScope.name}'+'">');