摘要:
Get Paths 当前WEB应用的物理路径: 当前你求请的JSP文件的物理路径: "); String realPath1 = "http://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath()+request.getServletPath().substring(0,request.getServletPath().lastIndexOf("/")+1); out.println("web 阅读全文
随笔档案-2012年11月4日
JSP中文乱码
2012-11-04 02:35 by owenyang, 116 阅读, 收藏,
摘要:
由于第一次接触JSP,今天搞那个乱码的事伤透了心。查了很多资料,最终成功的,只有:JSP页首:转换时:String name=new String(name.getBytes("ISO-8859-1"),"utf8");关于更高深的过滤器的方法,以有等以后了。 阅读全文