function btnmodify_clicked(){
var _url;
alert(document.all.formsname.value);  //显示的是中文
_url="../../im_test_studentaction.do?method=initmodify"
+"&s_no="+prjgridgetselectvalue("s_no")
+"&s_name="+prjgridgetselectvalue("document.all.formsname.value");
var _ret = openwin("修改",_url,300,200);
可在对应的studentaction.java文件的中request.getParameter("s_name"),获得的是???或者是乱麻
jsp文件中有<%@ page contentType="text/html; charset=GBK"%>
请问,我该怎么办???

解决方案 »

  1.   

    你服务器的没搞 REQUEST可以点出来。。忘记是什么了
      

  2.   

    过滤器在action中设置一下 怎么设置阿?
      

  3.   

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    response.setContentType("text/html; charset=GBK");
    request.setCharacterEncoding("GBK");
      

  4.   

    搞个过滤。。把response.setContentType("text/html; charset=GBK"); 
    request.setCharacterEncoding("GBK"); 
    放进去。就可以了