先问下:你的传给 jsp页面是什么意思? 
是不是要下面的这样的?
"some.jsp?userlang="+userlang还是什么其他的意思?

解决方案 »

  1.   

    页面中方式一:
    <form name="frmDeleteFile" action ="./AttachFiles.jsp" method="POST" onsubmit="OnDeleteSubmit()">         
         <input type="hidden" name="sPath" value="<%=sPath%>">
         <input type=hidden name="deletefile">
         <input type="hidden" name="sFileName" value="<%=sFileName%>">
         <table id="filetable" border="1" cellpadding=2 width="240px">
         <col><col width="50px">
         <tr bgcolor="#F0FAFA"><td>文件名</td><td>删除</td></tr>
    </table>
    </form>
    页面中方式二:
    <form name="frmUpLoad" action ="./AttachFiles.jsp?sPath=<%=sPath%>" enctype="multipart/form-data" method="POST">JSP中取参数:
    String sPath = request.getParameter("sPath");
      

  2.   

    <script>
    fuction revalue()
    {
    var temp=4;
    document.kenshin.kname.value=temp;
    }</script>
    <form name=kenshin >
    <input type=text name=kname>
    <input type=button vaule=check onclick="revalue()"></form>
      

  3.   

    对不起,我可能没有说明白,我再说一次,
    <script language="JavaScript" type="text/javascript">var userlang=navigator.userLanguage
    alert (userlang)</script>当用户打开这个页面时执行上面的javascript代码,并把值传到html或jsp页面里,这一切都是程序自己完成,不能通过客户onclick或onsubmit提交等相应方式传值
    希望各位高手给予解答,分不够我再给
      

  4.   

    再补充一下,我要传出来的是userlang的变量