<%@ page contentType="text/html" pageEncoding="GBK"%>
<html>
<head><title>www.csdn.net</title></head>
<body>
<h1>动态包含操作</h1>
<%
String username = "乱码" ;
%>
<jsp:include page="include.jsp">
<jsp:param name="name" value="<%=username%>"/>
<jsp:param name="info" value="www.csdn.net"/>
</jsp:include>
</body>
</html>
包含页面是:
<%@ page contentType="text/html" pageEncoding="GBK"%>
<h1>参数一:<%=request.getParameter("name")%></h1>
<h1>参数二:<%=request.getParameter("info")%></h1>username汉字显示是问号,求解。
<html>
<head><title>www.csdn.net</title></head>
<body>
<h1>动态包含操作</h1>
<%
String username = "乱码" ;
%>
<jsp:include page="include.jsp">
<jsp:param name="name" value="<%=username%>"/>
<jsp:param name="info" value="www.csdn.net"/>
</jsp:include>
</body>
</html>
包含页面是:
<%@ page contentType="text/html" pageEncoding="GBK"%>
<h1>参数一:<%=request.getParameter("name")%></h1>
<h1>参数二:<%=request.getParameter("info")%></h1>username汉字显示是问号,求解。
解决方案 »
- 如何强制清除ibatis缓存
- java 图书管理系统bs结构,出现HTTP Status 500 - 的错误
- 安装myeclipse6.0后,无法启动里面自带eclipse!!!!!
- 笨蛋是如何练成的?????
- jsp实现 telnet功能
- 这个SQL语句怎么写啊!
- 有关FormFile
- 有没有哪位大侠写的报表打印,在firefox浏览器下 也能使用?
- tomcat中,自己写的关于applet的类应放在何处?内容:放在什么地方才比较好呢?
- ssh框架,c3p0数据源,2个用户访问时数据互串
- JAVA 新手求助
- tomcat启动时 service到的action和运行时访问的action不是同一个,求解
<%@ page contentType="text/html;charset=utf-8" pageEncoding="GBK"%>
<%@ page contentType="text/html;charset=GBK" pageEncoding="GBK"%>
<%request.setCharacterEncoding("GBK"); %>
<jsp:include page="include.jsp">
<jsp:param name="name" value="<%=username%>"/>
<jsp:param name="info" value="www.csdn.net"/>
</jsp:include>