后面可能是乱码。
request.getParameter("abc")==null?"":new String(request.getParameter("abc").getBytes("8859_1"),"gb2312")
request.getParameter("abc")==null?"":new String(request.getParameter("abc").getBytes("8859_1"),"gb2312")
解决方案 »
- struts2中获取Request,Session,Application为NULL的问题
- struts求助
- java的jsp网页上传文件功能要第三方的功能块。为何不做到系统内。不解。
- eclipse+tomcat使用getServletContext().getRealPath()取路径问题?
- 从java.sql.Blob到oracle.sql.BLOB的转换错误
- web项目打包(war)问题
- 困惑,关于路径问题
- java.sql.SQLException:所请求的行不在缓冲区内
- 帮我看一下,我这样打包对不对,可是就是出不来
- 紧急求救!请问java中有没有类似于VC中的WORD类型的数据类型和类似于sizeof函数的函数
- DB2 Personal Edition能用JSP吗??
- JSP简单问题!!!!!!! 急??????????
怎么得到啊
还用request呢
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
<script language="javascript">
function test() {
alert(document.form1.abc.value);}
</script>
</head><body>
<form name="form1">
<textarea name="abc" id="abc" cols="30" rows="10">dddddddd</textarea>
<input type="button" value="test" onclick="test()">
</form>
</body></html>