<%@ page contentType="text/html; charset=gb2312" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
String temp=request.getParameter("id");
if(temp!=null)
{
byte bytes[]= temp.getBytes("iso-8859-1");
String str=new String(bytes,"gb2312");
pageContext.setAttribute("str",str);
request.setAttribute("str",str);
}
%>
<html>
<head>
<title>
jsp1
</title>
</head>
<body bgcolor="#ffffff">
<h1>
JBuilder Generated JSP
</h1>
<form method="post" action="jsp1.jsp">
<c:out value="${pageScope.str}"/>
<c:out value="${requestScope.str}"/>
</form>
</body>
</html>
正文
JSP过滤器----朋友写的!2006-02-20 22:21:00
【评论】 【打印】 【字体:大 中 小】 本文链接:http://blog.pfan.cn/wtblog/10311.html
阅读(2989) | 评论(2)
版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!
评论