日期:2014-05-18  浏览次数:20740 次

为什么这样编写的jsp文件还是出现乱码

代码
<%@   page   language= "java "   contentType= "text/html;   charset=GBK "%>    
<%      
        //request.setCharacterEncoding( "GBK ");      
        String   contentId   =   request.getParameter( "contentId ");      
%>    
<html>    
<head>    
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=GBK ">    
<title> Jsp   Test </title>    
</head>    
<body>    
<form   method   =   "post "   action= "ActionVerify.jsp ">    
<table>    
        <tr>    
                <td>    
                        <input   name   =   "contentId "   type   =   "text "   value=   " <%=contentId   %> ">    
                </td>    
                <td>    
                        <input   name   =   "submit "   type   =   "submit "   value=   "提交 ">    
                </td>    
        </tr>    
</table>    
</form>    
</body>    
</html>    
   
<%@   page   language= "java "   contentType= "text/html;   charset=GBK "%>    
<%      
//request.setCharacterEncoding( "GBK ");      
%>    
<html>    
<head>    
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=GBK ">    
<title> Insert   title   here </title>    
</head>    
<body>    
<form   action= " ">    
        <table>    
                <tr>    
                        <td>    
                                <%=request.getParameter( "contentId ")   %>    
                        </td>    
                </tr>    
        </table>    
</form>    
   
</body> &n