你在page 属性中要设置字体!!!
解决方案 »
- struts2 出现错误No result defined for action action.LoginAction and result error
- JSP显示相应的内容
- S2SH整合,使用HibernateTemplate().load()加载数据时的疑问..
- 请教: axis调用https web service
- struts action执行的东西太多,返回页面超时
- 关于myeclipse开发WEB应用问题【新手】
- webwork2如何取得系统或浏览器的语言信息?
- 关于java正则表达式的问题
- 如何用Java将数据库的内容保存到CSV文件
- 关于java的StringBuilder小疑问!求证!
- 江湖救急
- 一个应该出错,但却没有出错的程序,大家来看一下..........
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
JSP中
<%@ page contentType="text/html; charset=gb2312" language="java" %>
可是不行啊 读出来的还是 ? ??? 好多个问号
<%String g=request.getParameter("key");
out.print(g);
%>
key的值如果要在标签里用 不就不能这么用了吗?
public String getStr(String str)
{
try
{
String temp_p=str;
byte[] temp_t=temp_p.getBytes("ISO8859-1");
String temp=new String(temp_t);
return temp;
}
catch(Exception e)
{}
return "null";
}
做个自定义标签用,要是???是转多了,要是乱码就是没转